Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've recently started doing some Excel programming after a gap
of about 4 years, I find I've forgotten a lot. What's the syntax for this? The activecell is in a given column. I want to go to the same column, but a different row, ie a particular row in a named range "Column_Headings" to put it another way, what I want to go is go to the column heading of whichever column I'm in at the moment. TIA |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Activesheet.cells(1,activecell.column).Select
or activecell.entirecolumn.cells(1).Select Peter Morris wrote: I've recently started doing some Excel programming after a gap of about 4 years, I find I've forgotten a lot. What's the syntax for this? The activecell is in a given column. I want to go to the same column, but a different row, ie a particular row in a named range "Column_Headings" to put it another way, what I want to go is go to the column heading of whichever column I'm in at the moment. TIA -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Peter Morris wrote: I've recently started doing some Excel programming after a gap of about 4 years, I find I've forgotten a lot. What's the syntax for this? The activecell is in a given column. I want to go to the same column, but a different row, ie a particular row in a named range "Column_Headings" to put it another way, what I want to go is go to the column heading of whichever column I'm in at the moment. TIA "Dave Peterson" wrote in message ... Activesheet.cells(1,activecell.column).Select or activecell.entirecolumn.cells(1).Select No, the cell isn't neccesarily going to be in row 1. Its going to be above a particular column of figures but there may be stuff above it. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Do you know the row number to go to?
Activesheet.cells(###,activecell.column).Select if you do, change ### to that row number. Peter Morris wrote: Peter Morris wrote: I've recently started doing some Excel programming after a gap of about 4 years, I find I've forgotten a lot. What's the syntax for this? The activecell is in a given column. I want to go to the same column, but a different row, ie a particular row in a named range "Column_Headings" to put it another way, what I want to go is go to the column heading of whichever column I'm in at the moment. TIA "Dave Peterson" wrote in message ... Activesheet.cells(1,activecell.column).Select or activecell.entirecolumn.cells(1).Select No, the cell isn't neccesarily going to be in row 1. Its going to be above a particular column of figures but there may be stuff above it. -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Dave Peterson" wrote in message ... Do you know the row number to go to? No, that's the point. To be precise, I know the row number NOW, but as I develop my code Imight move the cells to a different location. I don't waant tohard code a specific row number. Cells in the row are a named range "column_headers" I want the current column within that range. Or an alternative way to do this. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ahhhh. I missed that part.
with activesheet .cells(.range("column_headers").row,activecell.col umn).Select end with Peter Morris wrote: "Dave Peterson" wrote in message ... Do you know the row number to go to? No, that's the point. To be precise, I know the row number NOW, but as I develop my code Imight move the cells to a different location. I don't waant tohard code a specific row number. Cells in the row are a named range "column_headers" I want the current column within that range. Or an alternative way to do this. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If activecell.column = variable then activecell,offset (0,1) | Excel Discussion (Misc queries) | |||
ActiveCell in a Range? | Excel Discussion (Misc queries) | |||
Define range with activecell | Excel Programming | |||
Mark a range from activecell | Excel Programming | |||
Name of range containing ActiveCell? | Excel Programming |