Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Kiral Demir   on Dec 15 In MS Office Category.

  
Question Answered By: Fedde Bakker   on Dec 15

The search  part of the macro  would look like

Dim MyWorkbook As Workbook
Dim MySheet As Worksheet
[FSO Code to open each workbook in turn  here]

MyString = "error"
For Each MySheet In MyWorkbook
x = MySheet.UsedRange.Find(MyString).Activate
If Not x Is Nothing Then
MyFlag = 1
End If
Next

The FSO will find the workbooks and open them. You will not be able to access
the contents of them without opening them in the application. (Unless you use
text  search facility completely outside VBA).

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 


Tagged: