Results 1 to 8 of 8

Thread: [RESOLVED] Use Spreasheet control instead of MSHFlexgrid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    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
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    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


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    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
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    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


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    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
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    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


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    70

    Re: Use Spreasheet control instead of MSHFlexgrid

    Thanks a lot!

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    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
  •  



Click Here to Expand Forum to Full Width