Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hey, I have a workbook with many worksheets. I am trying to write a
macro to search all the worksheets for a unique value. I have a userform to enter the value and assign it to a variable. I just need to search all sheet for that string, and if that string exists in a worksheet, activate that worksheet. Anyone done anything like this? Can you help? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Sub chercheFindMultiFeuillesValeur() x = "ABCD" For Each s In ActiveWorkbook.Sheets With Sheets(s.Name).Cells Set c = .Find(x, LookIn:=xlValues) If Not c Is Nothing Then premier = c.Address Do c.Interior.ColorIndex = 4 Set c = .FindNext(c) Loop While Not c Is Nothing And c.Address < premier End If End With Next s End Sub http://boisgontierjacques.free.fr/fi...iFeuilles2.xls JB http://boisgontierjacques.free.fr/ On 12 sep, 22:28, wrote: Hey, I have a workbook with many worksheets. I am trying to write a macro to search all the worksheets for a unique value. I have a userform to enter the value and assign it to a variable. I just need to search all sheet for that string, and if that string exists in a worksheet, activate that worksheet. Anyone done anything like this? Can you help? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Just FYI, if you have Excel 2002 or later the built-in Find feature can be
set to search the entire workbook. -- Jim wrote in message ups.com... | Hey, I have a workbook with many worksheets. I am trying to write a | macro to search all the worksheets for a unique value. I have a | userform to enter the value and assign it to a variable. I just need | to search all sheet for that string, and if that string exists in a | worksheet, activate that worksheet. Anyone done anything like this? | Can you help? | |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
See the answer posted in programming. Please do not mulit post. Check out
this link... http://www.cpearson.com/excel/newposte.htm -- HTH... Jim Thomlinson " wrote: Hey, I have a workbook with many worksheets. I am trying to write a macro to search all the worksheets for a unique value. I have a userform to enter the value and assign it to a variable. I just need to search all sheet for that string, and if that string exists in a worksheet, activate that worksheet. Anyone done anything like this? Can you help? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
xl2002 offers a find in workbook (under the Options button on the Edit|Find
dialog). Then you can click on the line in the results window to go to that location. I had to search for that site: http://www.theupdown.com/ where you can "play" with investments. wrote: Hey, I have a workbook with many worksheets. I am trying to write a macro to search all the worksheets for a unique value. I have a userform to enter the value and assign it to a variable. I just need to search all sheet for that string, and if that string exists in a worksheet, activate that worksheet. Anyone done anything like this? Can you help? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search multiple sheets and return largest number found | Excel Worksheet Functions | |||
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA | Excel Worksheet Functions | |||
search multiple sheets for specific date, return data in cell to r | Excel Discussion (Misc queries) | |||
Search for datats in different Exel sheets | Excel Discussion (Misc queries) | |||
How do I search excel spreadsheets using multiple search criteria. | Excel Worksheet Functions |