Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If someone had cell D6, I want the macro to goto to cell A6
If someone had cell T56, I want the macro to goto to cell A56 -ADK |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following will do that for you:
Sub GoToA() Dim lngRow As Long lngRow = ActiveCell.Row Range("A" & lngRow).Select End Sub -- Kevin Backmann "ADK" wrote: If someone had cell D6, I want the macro to goto to cell A6 If someone had cell T56, I want the macro to goto to cell A56 -ADK |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not sure what test you want to carry out with your if statement but
Range("A" & Activecell.Row).select will take you to column A on the same row as the selected cell. ADK wrote: If someone had cell D6, I want the macro to goto to cell A6 If someone had cell T56, I want the macro to goto to cell A56 -ADK |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks, this will work
"Alan" wrote in message ups.com... Not sure what test you want to carry out with your if statement but Range("A" & Activecell.Row).select will take you to column A on the same row as the selected cell. ADK wrote: If someone had cell D6, I want the macro to goto to cell A6 If someone had cell T56, I want the macro to goto to cell A56 -ADK |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If activecell.column = variable then activecell,offset (0,1) | Excel Discussion (Misc queries) | |||
Using ActiveCell to specify a column | Excel Programming | |||
Application.Goto Reference:="ActiveCell.Value"??? Whats wrong?? | Excel Programming | |||
If one column is full, goto the next column | Excel Programming | |||
How to set ActiveCell to a new column? | Excel Programming |