Feb 21, 2002 #1 Jamie2002 Technical User Joined Sep 17, 2001 Messages 62 Location 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 Joined Oct 19, 2001 Messages 476 Location 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 Joined Dec 4, 2001 Messages 47,492 Location 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