angelmaine4ever
New Member
- Joined
- Nov 1, 2017
- Messages
- 10
Hi I have this code below that combines multiple worksheets data into one worksheet (Master).
I need to skip one of the sheets (READ ME is the tab name).
PLS. NEED YOUR HELP. THANKS!!!
I need to skip one of the sheets (READ ME is the tab name).
PLS. NEED YOUR HELP. THANKS!!!
Code:
Option Explicit
Sub Button2_Click()
Dim Sht As Worksheet
For Each Sht In ActiveWorkbook.Worksheets
If Sht.Name <> "Master" Then
Sht.Select
Range("A:A").Insert
Range("A2").Formula = "=Mid(Cell(""filename"",B1),Find(""]"",Cell(""filename""))+1,255)"
Range("A2").Copy
Range("A2").PasteSpecial Paste:=xlPasteValues
Range("A2:K2").Copy
Sheets("Master").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste
Sht.Select
Range("A:A").Delete
Else
End If
Next Sht
End Sub
Last edited by a moderator: