Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I get an Error message saying "Path/File Access Error" when i try to create a new worksheet in a macro. The same macro works fine on my machine, and we tested in 3-4 other machines. It fails only on a particular machine. following is the code sample that causes the problem. Dim Sheet As Worksheet Set Sheet = Sheets.Add(Type:=ThisWorkbook.Path & "\Report.xlt") where Report.xlt is a template file that is stored in the same location as the Excel file itself. Can anyone please help me figure out what might be wrong. The code fails even when I create the worksheet without using a template("Report.xlt). That is by using the following code Dim Sheet As Worksheet Set Sheet = Sheets.Add Thanks. Geetha |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Path/File access error | Excel Discussion (Misc queries) | |||
Path/file access error | Excel Programming | |||
Path/File access error | Excel Programming | |||
Run-time error 75 Path/File access error | Excel Programming | |||
Path/File Access Error | Excel Programming |