Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Actually, you have a bug in your original code.
Set c = .Find(sStr, _ After:=Range("B1"), _ LookIn:=xlValues, _ LookAt:=xlPart, _ MatchCase:=False) Range("B1") should be qualified. Set c = .Find(sStr, _ After:=.Range("B1"), _ LookIn:=xlValues, _ LookAt:=xlPart, _ MatchCase:=False) (Note that extra dot) If you ever use this code against a sheet that isn't active, you'll be happy that you made the change. "J.J." wrote: Perfect! Thank you so much. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding multiple values in one column based on multiple values of the same value (text) in another column | Excel Discussion (Misc queries) | |||
Adding numerical values based on multiple values in another column | Excel Worksheet Functions | |||
macro to change multiple values in a column | Excel Discussion (Misc queries) | |||
Search multiple values to return single values | Excel Worksheet Functions | |||
multiple series of values graphed with indep. x values -possible? | Charts and Charting in Excel |