Ok here's what I have so far. It's an amalgamation of many snippets I've found online so far:
ub test()
Dim wbk As Workbook
Dim sht As Worksheet
For Each wbk In Workbooks
For I = 1 To Worksheets.Coun t
Dim LSearchRow As Integer
Dim LCopyToRow As Integer
On Error GoTo Err_Execute
'Start search...
User Profile
Collapse
-
Search open files for string and then copy that row into a new workbook
Hello,
I am trying to develop a vb program for Excel which will search through open workbooks for a text string (let's say that string is "error" for example) in a cell. Once this program finds this string, I need it to copy that cell and adjacent cells into a different workbook (this will be used to summarize the errors). As it copies this information, it would be nice if it stepped down the page as it pasted (so all the error cells...
No activity results to display
Show More
Leave a comment: