Jump to content

Recommended Posts

Posted

Hi guys

 

i'm using a MSFlexgrid in a VBA and im using the following code to move date down rows when a button is clicked.

 


                   .Text = CInt(.Text) + 1
                   'add row and move drawing names down table
                   .Rows = .Rows + 1
                   For i = .Rows - 1 To .Row + CInt(.Text) Step -1
                       .TextMatrix(i, 0) = .TextMatrix(i - 1, 0)
                       .TextMatrix(i, 1) = .TextMatrix(i - 1, 1)
                       .TextMatrix(i, 2) = .TextMatrix(i - 1, 2)
                       .TextMatrix(i, 3) = .TextMatrix(i - 1, 3)

 

What i need to know is how to move not only the text down but how do i move the .CELLBACKCOLOR down aswell??

 

Thank you

Posted

Even just how do i do the following?

 

make the .CellBackColor of (cell row 2 - col 0 )= the .CellBackColor of cell row 1 - Col 0???

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...