Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Guy's
Thanks for your help. Alan, your right, it is not needed to activate the cell before assigning to the variable, but because I had to search in that column for a specific value is is easier to activate the cell. So I will use the solution from Tom. Gerrit van Stempvoort "Alan Beban" wrote in message ... There's no need to activate the cell before assigning to the variable: Dim col_stapp As String col_stapp = Cells.Find(What:="stapp", After:=ActiveCell, _ LookIn:=xlValue, LookAt:=xlWhole, SearchOrder:=xlByRows, _ SearchDirection:=xlNext, MatchCase:=False).Column Alan Beban Tom Ogilvy wrote: Dim col_stapp as String Cells.find(What:="stapp", After:=ActiveCell, LookIn:=xlValue, LookAt:=xlWhole, SearchOrder:=xlByRows, SearcgDirection:=xlNext, MatchCase:=False).Activate col_stapp = ActiveCell.Column |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function that will look at letter in a column and return a number | Excel Worksheet Functions | |||
Column() to return a letter instead of a number? | Excel Worksheet Functions | |||
column header changed from letter to number, how return to letter | Excel Discussion (Misc queries) | |||
Auto number w/ different letter-number combos in same column | Excel Worksheet Functions | |||
value of a cell based upon column letter and variable for row# | Excel Programming |