Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I f you haven't already done so, you might want to get familiar with
Microsofts Scripting Runtime Library, scrrun.dll. It contains, among other things, an object called "FileSystemObject". This object has a method called "FolderExists". An alternative to the above is: Public Function FolderExists(sDirectory) As Boolean Dim sPathAttr As String On Error GoTo Bail FolderExists = False sPathAttr = GetAttr(sDirectory) And 0 FolderExists = True Bail: End Function Bill Barclift "nikolaosk" wrote in message ... hi there, i have a workbook and the user is asked to save the workbook under the name "costs.xls"in a folder called "tests" in the current desktop. how can i check using VBA that the user has saved the open workbook as "costs.xls" and then check that he indeed saved it in the "tests" folder on the desktop? basically, how can i check that there is a folder "tests" on the desktop with a file "costs.xls" in it ? thanks ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check if all formula's in a column are linked to the same file/folder | Excel Discussion (Misc queries) | |||
Check Folder For Files | Excel Discussion (Misc queries) | |||
Check if a folder has x files in it. | Excel Discussion (Misc queries) | |||
How to check if a file exists in an ftp folder | Excel Discussion (Misc queries) | |||
Need code to save file to new folder, erase from old folder | Excel Discussion (Misc queries) |