Results 1 to 8 of 8

Thread: [RESOLVED] Use Spreasheet control instead of MSHFlexgrid

  1. #1
    Lively Member
    Join Date
    Jan 06
    Posts
    70

    Resolved [RESOLVED] Use Spreasheet control instead of MSHFlexgrid

    I've had many problems with MSHFlexgrid because of the updates, I already tryed many things, for example I registered it, put the DWord value as 0 in regedit, changed UAC values, etc, and nothing works. I still get the "The subject is not trusted for the specified action" message.

    So I decided to replace MSHFlexgrid control for Spreadsheet control.
    I use the control in a userform in a Excel file, and the control is only going to display data.

    Any comments or suggestions?

  2. #2
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: Use Spreasheet control instead of MSHFlexgrid

    Just curious... Why not a listview? If it is just for displaying data?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  3. #3
    Lively Member
    Join Date
    Jan 06
    Posts
    70

    Re: Use Spreasheet control instead of MSHFlexgrid

    I haven't worked much with Spreadsheet or Listview controls, but I believe in this case I would have to rewrite less code using Spreadsheet, specially using Cells() method, but this is just my opinion and as I said I don't much experience with these controls.....any advice is welcomed.
    Do you think in the future I may have the same kind of problems I had with MSHFlexgrid if I use Spreadsheet control...
    thanks

  4. #4
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: Use Spreasheet control instead of MSHFlexgrid

    Angava, there is no problem in using the spreadsheet control. It's just that it is more complex than a Listview control...

    No you won't have any problems with Spreadsheet control as you had with MSHFlexgrid control...

    What exactly do you want to do?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  5. #5
    Lively Member
    Join Date
    Jan 06
    Posts
    70

    Re: Use Spreasheet control instead of MSHFlexgrid

    I am working in a spreadsheet that makes calculations and displays the data from the calculations, but it doesn't connect to any database.
    So far spreadsheet control has worked fine, I just haven't been able to find a method to change the columnwidth during runtime, any suggestions?
    thanks again

  6. #6
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: Use Spreasheet control instead of MSHFlexgrid

    Quote Originally Posted by angava View Post
    ... I just haven't been able to find a method to change the columnwidth during runtime, any suggestions?
    thanks again
    Code:
    Private Sub CommandButton1_Click()
        '~~> Spreadsheet1 is the name of the spreadsheet control
        Spreadsheet1.Columns(1).ColumnWidth = 15
    End Sub
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  7. #7
    Lively Member
    Join Date
    Jan 06
    Posts
    70

    Re: Use Spreasheet control instead of MSHFlexgrid

    Thanks a lot!

  8. #8
    Lively Member
    Join Date
    Jan 06
    Posts
    70

    Re: [RESOLVED] Use Spreasheet control instead of MSHFlexgrid

    ready

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •