Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can also just type into the name box one of these:
"c2 r" or "Description r" or "index(description,row())" The equivalent in VBA is: application.goto "Description r" , etc. An advantage is that you can use the macro recorder to generate the code. "A & S" wrote: On Jul 29, 1:31 pm, Lars-Ã…ke Aspelin wrote: On Wed, 29 Jul 2009 10:24:03 -0700 (PDT), "A & S" wrote: Hi I have been messing around for several hours to try and figure out how to do this but can never get quite what I want. I need to be able to run the macro and have it select a cell by using the row of the current active cell and column B. say for instance cell D5 is active, I would want the macro to select cell B5, if F15 were active then I would want it to select B15. Any help would be appreciated. Thank Try this macro Sub select_B() ActiveSheet.Cells(ActiveCell.Row, "B").Select End Sub Hope this helps / Lars-Ã…ke I am now wondering, I highlighted the entire column B and typed Description into the name box is there a way that I can use that title instead of B thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Move active cell through current selection | Excel Programming | |||
Selection starting from active cell | Excel Discussion (Misc queries) | |||
Change from Column Selection to Cell Selection | Excel Programming | |||
Active cell, row, column, worksheet, etc | Excel Programming | |||
Cell selection in non-active sheet | Excel Programming |