Running a macro from currently selected cell?

G

GD

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!
 
J

Jim Thomlinson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top