Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am getting an error he
Sheets("Sheet1").Copy After:=Windows(sFile).Sheets(1) which says that "Object doesn't support this property or method" Here is the code that I used: Call GetContractFileName Workbooks.Open FileName:="G:\USER\Contracts\Data_Files\All_2004_C atalog.xls" sFile = contractfilename cntNo = ContractNo Sheets("Sheet1").Copy After:=Windows(sFile).Sheets(1) Windows(sFile).Activate Sheets(cntNo).Select _____________________________________ Public Function GetContractFileName() ContractNo = InputBox("Enter the Contract Number: ", "Contract File") contractfilename = ContractNo & ".xls" End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Runtime Error '91' Object variable or With block variable not set | Excel Discussion (Misc queries) | |||
Run-time error '91': "Object variable or With block variable not set | Excel Programming | |||
Error 91 -- Object variable or With block variable not set | Excel Programming | |||
Cells.Find error Object variable or With block variable not set | Excel Programming | |||
Error 91 - Object variable with block variable not set | Excel Programming |