VBA - Search engine help
Closed
ITAnalyst
-
14 Jun 2012 à 02:22
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 25 Jun 2012 à 08:59
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 25 Jun 2012 à 08:59
Related:
- VBA - Search engine help
- Torch search engine download - Download - Browsers
- Unreal engine torrent search torrent - Download - Game development
- Opera search engine google - Guide
- Duckduckgo search engine download - Guide
- Cortana change search engine - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
25 Jun 2012 à 08:59
25 Jun 2012 à 08:59
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