Seems like it should be simple. Maybe it is.
I want to copy a range to the current cell. I might be at A10. Later I might be at A23. Regardless, I want to be able to copy a named range to the current cell. I want to put this command in a macro, so that I don't have to go scrolling thru the sheet to find the range, copy it, go back to where I was and paste it.
I have read about ActiveCell, but it doesn't seem as straightforward as it should be.
Thanks,
Geof Narlee
Paste the following into a new module in the VBA editor (Alt F11)
Edit to put in the actual name of your range. You might then want to assign a shortcut key to the macro (CNTRL something) for speed of use.Sub PasteNamedRange() Range("MyNamedRange").Copy Destination:=Selection End Sub
Martin
Eighty Twenty Spreadsheet Automation http://homepage.ntlworld.com/martin.rice1/ for all your Excel customisation and consulting needs.
If my solution has saved you time and/or money, please consider donating to Cancer Research UK.
OMG. I've been trying to figure that one out, on & off, for years.
THANK YOU SO MUCH, Martin.
Just noticed your London Marathon Cancer Run. Will be back next week to enter a donation. Thanks again & good luck on the Marathon.
Last edited by narlee; 12-03-2010 at 04:50 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks