Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
my application use a database and needs its path for many functions. I have a dialog box to choose the path but i call it every time i call a function, it's not really user friendly So how can i define the path at the first opening of my application, and stock the path anywhere so the dialog box won't appear anymore? Many thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John Walkenbach shows a way to browse for folder at:
http://j-walk.com/ss/excel/tips/tip29.htm You could ask once and keep that folder name in a public variable--declare it outside the any function/procedure. Option Explicit Public MyFolder as string Sub test1() if myfolder = "" then myfolder = GetDirectory("Select A folder") end if '...do lots of stuff End Sub Laurent M wrote: Hello, my application use a database and needs its path for many functions. I have a dialog box to choose the path but i call it every time i call a function, it's not really user friendly So how can i define the path at the first opening of my application, and stock the path anywhere so the dialog box won't appear anymore? Many thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Relative path in database query connection string | Excel Discussion (Misc queries) | |||
Relative path to Access database | Excel Discussion (Misc queries) | |||
Is it possible to use a cell reference to define the database? | Excel Worksheet Functions | |||
hyperlink navigation path path wrong in Excel 2003 | Excel Discussion (Misc queries) | |||
how shall i define the path when using export? | Excel Programming |