Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default flip an autoshape using VBA- recorded macro doesn't work

I have a shape (block arrow) that I need to flip using VBA.

I recorded the action using macro recorder and got:

Sheet1.Shapes("AutoShape 17").Select
Selection.ShapeRange.Flip msoFlipVertical

When I run these two lines in a sub all by themselves, it works and the
arrow flips. When I use the same two lines embedded in code, I get: "does
not support this property or method" error 438

If OldArrowDir < ArrowDir Then
Sheet1.Shapes("AutoShape 17").Select
Selection.ShapeRange.Flip msoFlipVertical
Sheet1.Range("C7").Value = ArrowDir
End If


running in debug, it does hit each line, and it is crashing on the line:
Selection.ShapeRange.Flip msoFlipVertical


any ideas?
much thanks,
Keith


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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Recorded replacement doesn't work Thomasw Excel Discussion (Misc queries) 0 October 22nd 09 02:48 PM
Recorded macro Gaurav[_3_] Excel Discussion (Misc queries) 4 September 22nd 08 06:46 PM
I recorded a macro "PrintSetUp" in excel but does not work Niranjan Excel Worksheet Functions 1 August 10th 07 02:57 PM
How does Set AutoShape Default work? JEN Excel Discussion (Misc queries) 1 June 2nd 05 09:13 PM


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

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

About Us

"It's about Microsoft Excel"