Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Invalid procedure call in use of Shape property??
I get an "Invalid procedure call" error message on the 4th
line in this proc: Private Sub butViewCmt_Click() Dim cmt As Comment For i = 1 To ActiveSheet.Comments.Count Set cmt = ActiveSheet.Comments.Item(i) cmt.Shape.AutoShapeType = msoShapeFlowchartAlternateProc If cmt.Visible = True Then cmt.Visible = False Else cmt.Visible = True End If Next i End Sub The 4th line is: cmt.Shape.AutoShapeType Why? Thanks. John Wirt |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Invalid procedure call in use of Shape property??
In Excel 2003, through Intellisense I get:
cmt.Shape.AutoShapeType = msoShapeFlowchartAlternateProcess which is slightly different than what you had. hth, Doug Glancy wrote in message ... I get an "Invalid procedure call" error message on the 4th line in this proc: Private Sub butViewCmt_Click() Dim cmt As Comment For i = 1 To ActiveSheet.Comments.Count Set cmt = ActiveSheet.Comments.Item(i) cmt.Shape.AutoShapeType = msoShapeFlowchartAlternateProc If cmt.Visible = True Then cmt.Visible = False Else cmt.Visible = True End If Next i End Sub The 4th line is: cmt.Shape.AutoShapeType Why? Thanks. John Wirt |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Invalid procedure call in use of Shape property??
That's it. Thanks. I clipped the Property vlues incorrectly.
"Doug Glancy" wrote in message ... In Excel 2003, through Intellisense I get: cmt.Shape.AutoShapeType = msoShapeFlowchartAlternateProcess which is slightly different than what you had. hth, Doug Glancy wrote in message ... I get an "Invalid procedure call" error message on the 4th line in this proc: Private Sub butViewCmt_Click() Dim cmt As Comment For i = 1 To ActiveSheet.Comments.Count Set cmt = ActiveSheet.Comments.Item(i) cmt.Shape.AutoShapeType = msoShapeFlowchartAlternateProc If cmt.Visible = True Then cmt.Visible = False Else cmt.Visible = True End If Next i End Sub The 4th line is: cmt.Shape.AutoShapeType Why? Thanks. John Wirt |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Run-time Error '5' - Invalid procedure call or argument | Excel Discussion (Misc queries) | |||
Run-time error '5': Invalid Procedure Call or Argument | Excel Discussion (Misc queries) | |||
Invalid Procedure | Excel Programming | |||
bizarre "invalid procedure call" error | Excel Programming | |||
Run-time error '5':Invalid Procedure call or argument | Excel Programming |