Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want macro that when I put any word from "A" to "Z" in Range("A1")
it should select that coloumn range from row 1 to down. For example if I put "H" in Range("A1") and by pressing button macro should select coloumn "H" range from row 1 to down. Please can any one help. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is some code that you can attach to your button...
Sub Test dim rng as range on error resume next set rng = range(cells(1, Range("A1").value), _ cells(rows.count, range("A1").value).end(xlup)) on error goto 0 if not rng is nothing then rng.select end sub -- HTH... Jim Thomlinson "K" wrote: I want macro that when I put any word from "A" to "Z" in Range("A1") it should select that coloumn range from row 1 to down. For example if I put "H" in Range("A1") and by pressing button macro should select coloumn "H" range from row 1 to down. Please can any one help. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select a coloumn or row in a Pivot table | Excel Discussion (Misc queries) | |||
how can I select a range of cells based on a value of a cell? | Excel Discussion (Misc queries) | |||
Select cell from range based on input in excel xp | Excel Discussion (Misc queries) | |||
Macro to select range based on cell not being blank | Excel Programming | |||
Select a range of columns based on active cell | Excel Programming |