Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Folks,
I have a spreadsheet with a macro that checks for two folders on th local disk before starting. It works fine on Excel XP and lower bu on 2003 this one line causes an error messages "object variable o with block variable not set" If Not fs.folderexists("c:\temp") Then If I omit the if statement knowing that the folder exists the F object functions perfectly for other tasks and the object is create in earlier code within the same function. Any ideas? Cheer |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
sdharris - ExcelForums.com shared this with us in
microsoft.public.excel.programming: Folks, I have a spreadsheet with a macro that checks for two folders on the local disk before starting. It works fine on Excel XP and lower but on 2003 this one line causes an error messages "object variable or with block variable not set" If Not fs.folderexists("c:\temp") Then If I omit the if statement knowing that the folder exists the FS object functions perfectly for other tasks and the object is created in earlier code within the same function. Any ideas? Cheers It's difficult to comment on your code without context. It's probably something with the FileSystemObject but you really need to show more code. -- Amedee Van Gasse using XanaNews 1.17.4.1 If it has an "X" in the name, it must be Linux? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spreadsheet SUM(C:C) or indeed any SUM no longer works Excel 2003 | Excel Worksheet Functions | |||
Excel 2003 Issue with UsedRange.Copy (code works in Excel 2002) | Excel Programming | |||
Office 2003 - "autocomplete" in file | open or file | save no longer works | Excel Discussion (Misc queries) | |||
VB6 Excel 97 code no longer works if Win2K SP3/4 applied. | Excel Programming | |||
Macro no longer works now that in Excel XP | Excel Programming |