Hi all,
I've done alot with vb but just getting my feet wet with VBA in Excel. I see it can do alot of neat things, but I'm having a very basic (haha) problem. How do I get the reference to the current cell I'm in?? And how do I traverse cells?
For example, I'm in a cell and want to copy the current column and insert a copy right where I am. I know some code like this will do it:
Columns("N:N".Select
Selection.Copy
Selection.Insert Shift:=xlToRight
But how do I get the "N:N" to refer to the current column I'm in?
In other words, how do I reference other cells/columns/rows from where I am?
Thanks much,
Tom
Tom Jacobson ...
MS Exchange admin, NT admin, Intranet admin, Virus protection, Frontpage, VB5&6, Access, Crystal Reports
I've done alot with vb but just getting my feet wet with VBA in Excel. I see it can do alot of neat things, but I'm having a very basic (haha) problem. How do I get the reference to the current cell I'm in?? And how do I traverse cells?
For example, I'm in a cell and want to copy the current column and insert a copy right where I am. I know some code like this will do it:
Columns("N:N".Select
Selection.Copy
Selection.Insert Shift:=xlToRight
But how do I get the "N:N" to refer to the current column I'm in?
In other words, how do I reference other cells/columns/rows from where I am?
Thanks much,
Tom
Tom Jacobson ...
MS Exchange admin, NT admin, Intranet admin, Virus protection, Frontpage, VB5&6, Access, Crystal Reports