Hi guys, I'm trying to move a worksheet to a network drive but I keep getting the subscript is out of range error. This is what I have so far:
Sheets("Sheet1").Select
Windows("My Version.xls").Activate
Sheets("Sheet1").Select
Application.WindowState = xlMinimized
Application.WindowState = xlMinimized
Windows("Book1.xls").Activate
Windows("My Version.xls").Activate
Sheets("Sheet1").Select
Sheets("Sheet1").Move Before:=Workbooks
("Book1.xls").Sheets(1)
Without putting the drive letter in front of book1.xls it works with no problems at all. When I add the syntax I receive the error. This file is located on the H drive so I dont know why im still receiving this error.
Sheets("Sheet1").Select
Windows("My Version.xls").Activate
Sheets("Sheet1").Select
Application.WindowState = xlMinimized
Application.WindowState = xlMinimized
Windows("Book1.xls").Activate
Windows("My Version.xls").Activate
Sheets("Sheet1").Select
Sheets("Sheet1").Move Before:=Workbooks
("Book1.xls").Sheets(1)
Without putting the drive letter in front of book1.xls it works with no problems at all. When I add the syntax I receive the error. This file is located on the H drive so I dont know why im still receiving this error.