Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Within my code I've got: Code: -------------------- ActiveWorkbook.SaveAs Filename:="P:\VBA training\Excel templates for Network stats\" & wrkbkname -------------------- which saves all right however, in my next line, I wish to open up the folder in which the workbook was saved but I can't seem to find a way to do this. Later on I plan to have the file path as a variable but at the moment I'm working with just this one. Cheers :) -- Daminc ------------------------------------------------------------------------ Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074 View this thread: http://www.excelforum.com/showthread...hreadid=503265 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't know what you mean by open up a folder, but you have the folder path
so just store it in a variable sPath = "P:\VBA training\Excel templates for Network stats\" Activeworkbook.SaveAs Filename:= sPath & wrkbname and you can still use sPath -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Daminc" wrote in message ... Within my code I've got: Code: -------------------- ActiveWorkbook.SaveAs Filename:="P:\VBA training\Excel templates for Network stats\" & wrkbkname -------------------- which saves all right however, in my next line, I wish to open up the folder in which the workbook was saved but I can't seem to find a way to do this. Later on I plan to have the file path as a variable but at the moment I'm working with just this one. Cheers :) -- Daminc ------------------------------------------------------------------------ Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074 View this thread: http://www.excelforum.com/showthread...hreadid=503265 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I've come across: http://www.mentalis.org/apilist/SHBr...rFolder.shtml# which claims to do what I want. Right now I'm reading a printed version of it trying to understand what on earth the code is trying to do before I try and use it (currently reading about the 'Type Statement'). The idea of storing the user path as a varible is a good one though and I'll impliment that asap :) -- Daminc ------------------------------------------------------------------------ Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074 View this thread: http://www.excelforum.com/showthread...hreadid=503265 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I can't figure out what the code does :( When I put it in a new module it doesn't seem to do anything. I don't know what hWnd is supposed to be or most of the other stuff. Looks like I'll have to find an alternative option -- Damin ----------------------------------------------------------------------- Daminc's Profile: http://www.excelforum.com/member.php...fo&userid=2707 View this thread: http://www.excelforum.com/showthread.php?threadid=50326 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Are u just trying to select a folder to get the folder name? If so, and you
have Excel XP/2002 you can use With Application.FileDialog(msoFileDialogFolderPicker) .Show MsgBox .SelectedItems(1) End With -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Daminc" wrote in message ... I can't figure out what the code does :( When I put it in a new module it doesn't seem to do anything. I don't know what hWnd is supposed to be or most of the other stuff. Looks like I'll have to find an alternative option. -- Daminc ------------------------------------------------------------------------ Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074 View this thread: http://www.excelforum.com/showthread...hreadid=503265 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Nah, unfortunately I'm using Excel 2000. I don't know if there's an equivalent command? -- Daminc ------------------------------------------------------------------------ Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074 View this thread: http://www.excelforum.com/showthread...hreadid=503265 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
opening file from ftp folder | Excel Discussion (Misc queries) | |||
when opening folder | New Users to Excel | |||
Opening Workbooks in a Folder One by One | Excel Programming | |||
"Folder Select" Dialogue - Opening multiple files from selected folder | Excel Programming | |||
opening each file in a folder | Excel Programming |