|
-
Nov 6th, 2000, 12:09 PM
#1
I know this shouldn't be a difficult question, but on a Monday morning, I'm having major difficulties.
I am writing a macro for a spreadsheet and I can't figure out how to store the ActiveCell range (ie. B1), go do another process (ie. create a column) and go back bo the originally selected cell (ie. B1).
In theory, I want to do this:
rOrigCell = ActiveCell.<something>
Columns(ActiveCell.Column + 1).Select
Selection.Insert
ActiveCell.<something> = rOrigCell
What is the <something> that I am looking for?
HELP!!!!!
Thanks!!!
Dan
-
Nov 6th, 2000, 12:21 PM
#2
Hyperactive Member
dim r as range
set r = activesheet.activecell
Columns(ActiveCell.Column + 1).Select
'/
'/ go off and do your stuff
'/
r.Activate '/ will make your original cell/range active.
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Nov 6th, 2000, 12:24 PM
#3
Thank you VERY much. It didn't like the ActiveSheet.ActiveCell, but I just assigned ActiveCell to r and all is working perfectly.
Thank you so much!!!
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|