Results 1 to 6 of 6

Thread: Excel VB problem - Very excel specific - Please Help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89

    Excel VB problem - Very excel specific - Please Help

    The following code is supposed to set the height of a comment and change the location of the top of the comment:
    Code:
    xlsChart.Cells(25, intIndex).Comment.Text strComment
    xlsChart.Cells(25, intIndex).Comment.Shape.Height = intHeight
    If (220 - (intHeight / 2)) > 1.5 Then
          xlsChart.Cells(25, intIndex).Comment.Shape.Top = Int(220 - (intHeight / 2))
    Else
          xlsChart.Cells(25, intIndex).Comment.Shape.Top = 1.5
    End If
    It sets the height just fine .... but the top won't change ... there seems to be some sort of Auto Locate property for comments that I can't find, because the .top and .left properties are always set to the same distance from the reference cell.

    Even if I move the comment in Edit mode, it still returns to the same position.

    I have searched the web ... Comment.Shape.Top only returned ONE site when I searched ... it appears nobody bothers programming comments to this level of detail in excel ... believe me I didn't want to either ...

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89
    Come on there must be SOMEONE that's got excel experience!?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89
    ...back to the top .... it's really got me stumped

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89
    ..... no one???

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89
    OK .... I'm still looking for the answer to this one so if anyone could help me ... please do...

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89

    No excel gurus in the audience? .....

    ?

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