Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default inputbox vs. userform/combobox vs. Windows file handlers ???

Hi All:

I need to prompt the user for the name of a secondary workbook, and then
given that "other" filename, use it to replace a "place-holder" filename
in some formulas.

I can do all the search/replace in VBA, and if need by I can use an
INPUTBOX to have the user enter the secondary filename (meaning either
they type it in or copy it from the clipboard).

What would be nice (since filenames are looooong), however, is if I
could present the user w/ some dialboge box that displays all possible
XLS files (having drilled down to some directory, etc.) and then have
the user simply highlight the desired file and presss OK (or something
like that), thus capturing the filename as a VBA variable.

Can that be done easily, or will I have to use standard Window file
diaglogue boxes, etc. and would that mean that the secondary file simply
gets opened vs. capturing its filename as a VBA variable?

Hope the above is clear,

Any help/advice would be much obliged.

Regards



  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,272
Default inputbox vs. userform/combobox vs. Windows file handlers ???

List,

Take a look at the GetOpenFilename method in VBA. It presents the file open
dialog box, and the user can select, but it doesn't open it, just returns
the selected filename (full path).

--

HTH

RP

"List Lurker" wrote in message
. ..
Hi All:

I need to prompt the user for the name of a secondary workbook, and then
given that "other" filename, use it to replace a "place-holder" filename
in some formulas.

I can do all the search/replace in VBA, and if need by I can use an
INPUTBOX to have the user enter the secondary filename (meaning either
they type it in or copy it from the clipboard).

What would be nice (since filenames are looooong), however, is if I
could present the user w/ some dialboge box that displays all possible
XLS files (having drilled down to some directory, etc.) and then have
the user simply highlight the desired file and presss OK (or something
like that), thus capturing the filename as a VBA variable.

Can that be done easily, or will I have to use standard Window file
diaglogue boxes, etc. and would that mean that the secondary file simply
gets opened vs. capturing its filename as a VBA variable?

Hope the above is clear,

Any help/advice would be much obliged.

Regards





  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,253
Default inputbox vs. userform/combobox vs. Windows file handlers ???

if the formulas are linked to external files...
you just have to change the links.

see workbook objects' LinkSources & ChangeLink
Methods to manipulate those.

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Bob Phillips" wrote:

List,

Take a look at the GetOpenFilename method in VBA. It presents the file
open dialog box, and the user can select, but it doesn't open it, just
returns the selected filename (full path).



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Value From ComboBox On UserForm jlclyde Excel Discussion (Misc queries) 3 October 16th 09 01:43 PM
ComboBox on UserForm Michel[_4_] Excel Programming 3 August 1st 04 11:10 PM
ComboBox on UserForm Michel[_4_] Excel Programming 2 July 31st 04 10:11 PM
Switching from InputBox to UserForm? Sean Stuber Excel Programming 4 April 19th 04 03:35 PM
Inputbox or UserForm Stein Kristiansen Excel Programming 1 November 24th 03 06:30 PM


All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"