Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find Macro
I have a workbook with multiple sheets and thousands of entries. I would
like to search the workbook for entries that would be similar to this: abcde-s-1234 or efghij-s-56789 The only common this is the -s- in the cells that would be 5 or 6 places over from the left. I would like to locate all the -s entries and write them to another sheet or workbook. Thanks, Jerry |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find Macro
|
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find Macro
"Gary L Brown" wrote in message ... Run 'SearchFinder'. It is an adaptation of something Mr. Manville wrote about 7 years ago. hth, -- Gary Brown If this post was helpful, please click the ''Yes'' button next to ''Was this Post Helpfull to you?''. When it asks you what you are looking for, put *-s-* as the searched for criteria.... That worked really very well. Now I have 2 different worksheets 1 & 2 that will have some cell data that is the same. I would like to compare the cell entries of both sheets for a match. For every one of the entries not found in sheet 2 that are in sheet 1, I would like to write them to another sheet. For everything not found in both sheets, write them to another. Thanks. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find Macro
http://www.cpearson.com/excel/duplicat.htm
-- Regards, Tom Ogilvy "Jerry" wrote in message ... "Gary L Brown" wrote in message ... Run 'SearchFinder'. It is an adaptation of something Mr. Manville wrote about 7 years ago. hth, -- Gary Brown If this post was helpful, please click the ''Yes'' button next to ''Was this Post Helpfull to you?''. When it asks you what you are looking for, put *-s-* as the searched for criteria.... That worked really very well. Now I have 2 different worksheets 1 & 2 that will have some cell data that is the same. I would like to compare the cell entries of both sheets for a match. For every one of the entries not found in sheet 2 that are in sheet 1, I would like to write them to another sheet. For everything not found in both sheets, write them to another. Thanks. |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find Macro
"Jerry" wrote in message ... I have a workbook with multiple sheets and thousands of entries. I would like to search the workbook for entries that would be similar to this: abcde-s-1234 or efghij-s-56789 The only common this is the -s- in the cells that would be 5 or 6 places over from the left. I would like to locate all the -s entries and write them to another sheet or workbook. Thanks, Jerry Here is what I found that works well also. I would like for it or something like it to open a new workbook and write what it finds to it. Thanks, Jerry Sub SearchWorkbook() Dim Wksh As Worksheet Dim FindString As String Dim Msgtext As String Msgtext = "The string was found; do you want to continue searching?" Prompt = "Enter the string to search for" Title = "Find for All Sheets" ' Display the Input Box On Error Resume Next FindString = Application.InputBox(Prompt:=Prompt, _ Title:=Title, Type:=2) 'Text to find (string) ' Was the Input Box canceled? If FindString = "" Then MsgBox "Canceled." End 'exit the macro End If 'Search thru all sheets For Each Wksh In ActiveWorkbook.Worksheets With Wksh.UsedRange Set c = .Find(FindString, LookIn:=xlValues, _ Lookat:=xlPart, MatchCase:=False) If Not c Is Nothing Then firstAddress = c.Address Wksh.Activate Do 'c.Interior.ColorIndex = 45 'c.Interior.Pattern = xlPatternGray50 'change color--if desired for found cell c.Select Reply = MsgBox(Msgtext, vbYesNo, Title) If Reply = vbNo Then End 'MsgBox "Search Canceled" 'End If 'Exit the macro if No chosen Set c = .FindNext(c) Loop While Not c Is Nothing And c.Address < firstAddress End If End With Next End Sub |
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replacing a function key on Keypad
Can a function key on the keypad be converted to ":" entry.
I want to key in 2330 and have it entered as time 23:30 in excel Thanks, Ron 805-529-8300 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro-find and sum | Excel Discussion (Misc queries) | |||
Get Macro warning, but can't find Macro | Excel Worksheet Functions | |||
Find Macro | Excel Discussion (Misc queries) | |||
Using Find in a macro | Excel Discussion (Misc queries) | |||
I need to find a macro to find data cut and paste to another colu. | Excel Programming |