Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Dir" uot of order
Hi
I run Excel 2007 but are writing code in an 2003excelfile (xls). Suddenly does not Dir function works in folliwing sub Sub FindData() Dim path, filename As String path = "D:Officebyggaren\CBRE\TEMP\" Application.ScreenUpdating = False filename = Dir(path) ......and so on The path D:Officebyggaren\CBRE\TEMP\ include three files. Dir have worked but suddenly it doesn't!!! Runing step by step I can see "Filename ="" ". Thank's in advance to that guy who can support me /KentAE -- If you are old enough, you have your future behind you. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Dir" uot of order
Try to add a \
path = "D:\Officebyggaren\CBRE\TEMP\" -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "KentAE" wrote in message ... Hi I run Excel 2007 but are writing code in an 2003excelfile (xls). Suddenly does not Dir function works in folliwing sub Sub FindData() Dim path, filename As String path = "D:Officebyggaren\CBRE\TEMP\" Application.ScreenUpdating = False filename = Dir(path) .....and so on The path D:Officebyggaren\CBRE\TEMP\ include three files. Dir have worked but suddenly it doesn't!!! Runing step by step I can see "Filename ="" ". Thank's in advance to that guy who can support me /KentAE -- If you are old enough, you have your future behind you. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Dir" uot of order
Perhaps it is typo, but you are missing a '\' character after the drive
spec. path = "D:Officebyggaren\CBRE\TEMP\" ' should be path = "D:\Officebyggaren\CBRE\TEMP\" -- Cordially, Chip Pearson Microsoft MVP - Excel, 10 Years Pearson Software Consulting www.cpearson.com (email on the web site) "KentAE" wrote in message ... Hi I run Excel 2007 but are writing code in an 2003excelfile (xls). Suddenly does not Dir function works in folliwing sub Sub FindData() Dim path, filename As String path = "D:Officebyggaren\CBRE\TEMP\" Application.ScreenUpdating = False filename = Dir(path) .....and so on The path D:Officebyggaren\CBRE\TEMP\ include three files. Dir have worked but suddenly it doesn't!!! Runing step by step I can see "Filename ="" ". Thank's in advance to that guy who can support me /KentAE -- If you are old enough, you have your future behind you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... | Excel Programming |