Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to get column letter for an active cell - ie: "DZ"

Status
Not open for further replies.

lakers8175

IS-IT--Management
Sep 18, 2001
67
US
I have a looping copy/paste macro that runs through a certain # of rows and a certain # of columns.

I'd like to figure out how to know what column I am on and stop the macro at a specified column, ie: column "DZ"

Since this macro is used on spreadsheets of varying lengths, I was planning on setting a variable with the column letter, and then checking in the loop until I reach my variable.

Does someone have a snippet of code that may be useable?

Thanks.
 


Hi,

Please post VBA questions in VBA Visual Basic for Applications (Microsoft) forum707.

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top