flowsnow06
New Member
- Joined
- Jul 22, 2015
- Messages
- 12
Hello,
Need some assistance with VBA. I have never tried with multiple worksheets as well as having duplicative values in worksheets.
What I need is to search across three worksheets in the workbook for a specific phrase or value and have it returned on another worksheet named Results.
There are 7 columns that have data in the worksheets that I would need to extract to the results worksheet.
I've done this before with VBA see below but never with multiple worksheets only with one. I tried adding the additional sheets (IGO & NIGO) in the sheets range but kept receiving an error. Any assistance you can provide would be very much appreciated.
Sub searchdata()
Dim erow as Long
Dim ws as Worksheet
Dim lastrow as Long
Dim count As Integer
lastrow=Sheets("Client").Cells(Rows.count,1).End(xlup).Row
For x=2 To lastrow
If Sheets("True")Cells(x,1)=Sheet1.Range("B2")Then
Sheet1.Range("A7")=Sheets("True").Cells(x,1)
I'm not sure if this will even be the appropriate code for my request, but again any assistance would be greatly appreciated.
Need some assistance with VBA. I have never tried with multiple worksheets as well as having duplicative values in worksheets.
What I need is to search across three worksheets in the workbook for a specific phrase or value and have it returned on another worksheet named Results.
There are 7 columns that have data in the worksheets that I would need to extract to the results worksheet.
I've done this before with VBA see below but never with multiple worksheets only with one. I tried adding the additional sheets (IGO & NIGO) in the sheets range but kept receiving an error. Any assistance you can provide would be very much appreciated.
Sub searchdata()
Dim erow as Long
Dim ws as Worksheet
Dim lastrow as Long
Dim count As Integer
lastrow=Sheets("Client").Cells(Rows.count,1).End(xlup).Row
For x=2 To lastrow
If Sheets("True")Cells(x,1)=Sheet1.Range("B2")Then
Sheet1.Range("A7")=Sheets("True").Cells(x,1)
I'm not sure if this will even be the appropriate code for my request, but again any assistance would be greatly appreciated.