Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time Error '5' - Invalid procedure call or argument Trefor Excel Discussion (Misc queries) 2 December 17th 07 03:32 AM
Run-time error '5': Invalid Procedure Call or Argument Nikila Excel Discussion (Misc queries) 2 February 24th 06 09:26 PM
Invalid Procedure kldempsey Excel Programming 2 August 25th 04 04:25 AM
bizarre "invalid procedure call" error PatFinegan[_14_] Excel Programming 11 July 13th 04 07:56 PM
Run-time error '5':Invalid Procedure call or argument Jan Refsdal Excel Programming 1 July 25th 03 05:14 AM


All times are GMT +1. The time now is 03:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"