Feb 21, 2002 #1 Jamie2002 Technical User Sep 17, 2001 62 GB How do you write code to return the cell address your in at any one time. Would you set-up a variable then set the variable to the cell address.....? thanks.
How do you write code to return the cell address your in at any one time. Would you set-up a variable then set the variable to the cell address.....? thanks.
Feb 21, 2002 #2 acron MIS Oct 19, 2001 476 IE You can set a variable, but may not need to. You can just use ActiveCell.Address to get the address of the active cell. AC Upvote 0 Downvote
You can set a variable, but may not need to. You can just use ActiveCell.Address to get the address of the active cell. AC
Feb 21, 2002 1 #3 S SkipVought Programmer Dec 4, 2001 47,487 US Hi, ActiveCell.Address will return the address in A1 notation -- OK, but not as useful for programatically navigating around a spreadsheet. So... Code: With ActiveCell lRow = .Row iCol = .Column End With and by incrimenting lRow and iCol, you can reference ANYWHERE on a sheet by way of... Code: Cells(lRow, iCol) Just another alternative ;-) Skip, metzgsk@voughtaircraft.com Upvote 0 Downvote
Hi, ActiveCell.Address will return the address in A1 notation -- OK, but not as useful for programatically navigating around a spreadsheet. So... Code: With ActiveCell lRow = .Row iCol = .Column End With and by incrimenting lRow and iCol, you can reference ANYWHERE on a sheet by way of... Code: Cells(lRow, iCol) Just another alternative ;-) Skip, metzgsk@voughtaircraft.com