VBA - Search engine help
Closed
ITAnalyst
-
Jun 14, 2012 at 02:22 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jun 25, 2012 at 08:59 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jun 25, 2012 at 08:59 AM
Related:
- VBA - Search engine help
- Google usa search engine - Guide
- Aorus engine - Download - Cleaning and optimization
- Cheat engine - Download - Gaming tools
- Wallpaper engine apk pc - Download - Illustration and animation
- Unreal engine 5 download - Download - Game development
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jun 25, 2012 at 08:59 AM
Jun 25, 2012 at 08:59 AM
Hi ITAnalyst,
You mean something like this:
Sub Find_Data()
Best regards,
Trowa
You mean something like this:
Sub Find_Data()
Dim datatoFind Dim sheetCount As Integer Dim counter As Integer Dim aCell As Range On Error Resume Next Set aCell = ActiveCell datatoFind = InputBox("Please enter one or more words of the users issue") If datatoFind = vbNullString Then Exit Sub sheetCount = ActiveWorkbook.Sheets.Count For counter = 1 To sheetCount Sheets(counter).Activate Cells.Find(What:=datatoFind, After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False).Activate If aCell <> ActiveCell Then Exit Sub Next counter If aCell = ActiveCell Then MsgBox ("We could not seem to see that fix, please check our spelling and try to refine your search with fewer words") End Sub
Best regards,
Trowa