Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
ChDir "F:\dump" - not working
I am using xl2007.
Im my macro, I am trying to change link in all cells by pointing them to the new file. I have tried only file name with chdir and full file name with path but none works. ChDir "F:\dump" is not changing the dir at all. Excel still keep pointing to my documents. Its simple but I cant get it straight. Pl help. Regards, Madiya |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
ChDir "F:\dump" - not working
Hi Madiya
Try this: ChDrive "F:\" ChDir "F:\Dump" FileToOpen = Application.GetOpenFilename _ (Title:="Select a File", _ FileFilter:="Excel Files *.xls (*.xls),") If FileToOpen = False Then MsgBox "No File has been Selected.", vbExclamation, "Doh!!!" Exit Sub Else Workbooks.Open Filename:=FileToOpen End If HTH Mick |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
ChDir "F:\dump" - not working
On Aug 31, 4:14*pm, "Vacuum Sealed" wrote:
HiMadiya Try this: * * ChDrive "F:\" * * ChDir "F:\Dump" * * FileToOpen = Application.GetOpenFilename _ * * (Title:="Select a File", _ * * FileFilter:="Excel Files *.xls (*.xls),") * * If FileToOpen = False Then * * MsgBox "No File has been Selected.", vbExclamation, "Doh!!!" * * Exit Sub * * Else * * Workbooks.Open Filename:=FileToOpen * * End If HTH Mick It worked. Thanks a ton. Regards, Madiya |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Delete all sheets in workbook that contain "Dump" in the name | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Replace(ActiveCell.Formula, "Round(","") not working as expected | Excel Programming | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Working out age from "Day" "Month" "Year" | Excel Worksheet Functions |