Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ged
 
Posts: n/a
Default How to write macro to move object via if function

All
I am trying to write a macro that will move an auto shape depending upon the
results of an IF condition. i.e. if A1<A2 move object from here to there.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default How to write macro to move object via if function

Can't be done. User defined functions can return a result, they can
manipulate objects.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ged" wrote in message
...
All
I am trying to write a macro that will move an auto shape depending upon

the
results of an IF condition. i.e. if A1<A2 move object from here to there.

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How to write macro to move object via if function

Just to clarify...

Do you mean an if condition in a worksheet formula?

Or an If statement in a subroutine?

Ged wrote:

All
I am trying to write a macro that will move an auto shape depending upon the
results of an IF condition. i.e. if A1<A2 move object from here to there.

Thanks in advance


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Ged
 
Posts: n/a
Default How to write macro to move object via if function

Dave

I mean an if condition in a worksheet formula?


"Dave Peterson" wrote:

Just to clarify...

Do you mean an if condition in a worksheet formula?

Or an If statement in a subroutine?

Ged wrote:

All
I am trying to write a macro that will move an auto shape depending upon the
results of an IF condition. i.e. if A1<A2 move object from here to there.

Thanks in advance


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How to write macro to move object via if function

See Bob's reply.

You may be able to use some sort of worksheet event (worksheet_calculate) to do
what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

If you want to read more about these kinds of events:

Chip Pearson's site:
http://www.cpearson.com/excel/events.htm

David McRitchie's site:
http://www.mvps.org/dmcritchie/excel/event.htm

Ged wrote:

Dave

I mean an if condition in a worksheet formula?

"Dave Peterson" wrote:

Just to clarify...

Do you mean an if condition in a worksheet formula?

Or an If statement in a subroutine?

Ged wrote:

All
I am trying to write a macro that will move an auto shape depending upon the
results of an IF condition. i.e. if A1<A2 move object from here to there.

Thanks in advance


--

Dave Peterson


--

Dave Peterson
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
Restarting a macro BR Excel Worksheet Functions 19 December 23rd 05 09:57 PM
Macro to turn on "Track Changes" function John A Excel Discussion (Misc queries) 0 December 7th 05 05:31 PM
How to write a macro?? Keeter Excel Discussion (Misc queries) 1 July 19th 05 08:34 PM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
Function Macro for Nested IF Qaspec Excel Worksheet Functions 5 March 10th 05 07:25 PM


All times are GMT +1. The time now is 02:09 AM.

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"