Professional Documents
Culture Documents
- Dim wb As Workbook
Workbooks(wb.Name).Activate
Set wb1 = ActiveWorkbook
- wb1.Activate(this can be used later on since value is stored in
variable)
- Set wb1 = Workbooks.Open(full path including file extension)(another
way to set workbook data to variable)
- Sheets("motors").Visible = True
- Worksheets("motors").Activate
- Set ws1 = ActiveWorkbook.Worksheets("Sheet1")
- ActiveSheet.AutoFilterMode = False
- Cells.Clear