#1   Report Post  
Posted to microsoft.public.excel.misc
ED
 
Posts: n/a
Default Run a Macro

I managed to record a macro. It is about 5 lines long.
I would like to run it whereever I need it. However I can only run it in
the same cell each time. How would I change this? Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Run a Macro

You'll have to edit your recorded macro.

I can help!


--
AP

"ED" a écrit dans le message de
...
I managed to record a macro. It is about 5 lines long.
I would like to run it whereever I need it. However I can only run it in
the same cell each time. How would I change this? Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.misc
ED
 
Posts: n/a
Default Run a Macro

How do I edit a macro?

"Ardus Petus" wrote:

You'll have to edit your recorded macro.

I can help!


--
AP

"ED" a écrit dans le message de
...
I managed to record a macro. It is about 5 lines long.
I would like to run it whereever I need it. However I can only run it in
the same cell each time. How would I change this? Thank you.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Run a Macro

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

You may want to post your code here to get a little help. And include what the
macro is supposed to do.



ED wrote:

How do I edit a macro?

"Ardus Petus" wrote:

You'll have to edit your recorded macro.

I can help!


--
AP

"ED" a écrit dans le message de
...
I managed to record a macro. It is about 5 lines long.
I would like to run it whereever I need it. However I can only run it in
the same cell each time. How would I change this? Thank you.





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Run a Macro

You can create a Drawing Object, such as a rectangle, or circle, etc using
the Drawing Toolbar....then Right-click on the object and select "Assign
macro" from the dropdown, and then select your macro from the window and
click OK.......next time you can run the macro just by clicking on the
object........

hth
Vaya con Dios,
Chuck, CABGx3



"ED" wrote:

I managed to record a macro. It is about 5 lines long.
I would like to run it whereever I need it. However I can only run it in
the same cell each time. How would I change this? Thank you.



  #6   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default Run a Macro

Post the code.

You probably have a line before the change like

Range("B2").Select

which should be deleted.

Or you have a piece of code like

Range("B2").FormulaR1C1 = "abc"

which needs to be changed to

ActiveCell.FormulaR1C1 = "abc"

If it's not these, then post your code.

"ED" wrote:

I managed to record a macro. It is about 5 lines long.
I would like to run it whereever I need it. However I can only run it in
the same cell each time. How would I change this? Thank you.

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
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
macro with F9 Kenny Excel Discussion (Misc queries) 1 August 3rd 05 02:41 PM
Make Alignment options under format cells available as shortcut dforrest Excel Discussion (Misc queries) 1 July 14th 05 10:58 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM


All times are GMT +1. The time now is 08:35 AM.

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"