Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
GD GD is offline
external usenet poster
 
Posts: 83
Default Running a macro from currently selected cell?

How do I record a macro to run from the cell that is currently selected,
rather than a specific cell number?

I copy & paste data from wIntegrate (non-MS app) to a spreadsheet, and then
perform much the same functions every time to make sure the data is correct.
Every copy & paste job goes below the last, so I need for a macro to read
the cell currently selected and run the macro from that point.

Thanks for the brainwaves!
--
GD
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Running a macro from currently selected cell?

A recorded macro is going to be full of "selects". These will be hard coded
constants. What you need to do is to remove those selects and make the
refernces relative. That is easier said than done if you don't understand the
XL object model. To that end record what you want done and post it. We can
help you make the necessary changes.
--
HTH...

Jim Thomlinson


"GD" wrote:

How do I record a macro to run from the cell that is currently selected,
rather than a specific cell number?

I copy & paste data from wIntegrate (non-MS app) to a spreadsheet, and then
perform much the same functions every time to make sure the data is correct.
Every copy & paste job goes below the last, so I need for a macro to read
the cell currently selected and run the macro from that point.

Thanks for the brainwaves!
--
GD

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
Running macro depending on cell value Esradekan Excel Worksheet Functions 2 January 29th 08 07:03 PM
Running Macro when a cell value changes Ayo Excel Discussion (Misc queries) 1 April 18th 07 03:09 PM
Running a Macro when a single cell is selected Jerry Wustrack Excel Discussion (Misc queries) 3 January 31st 06 08:27 PM
Running a macro in a selected cell... Steve Excel Discussion (Misc queries) 2 January 19th 06 10:58 PM
Can macros output to a cell selected prior to running it? winnie Excel Worksheet Functions 3 February 17th 05 11:03 PM


All times are GMT +1. The time now is 07:42 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"