Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Make VBA open a browser window

Hi,

I have this code in VBA that calls a query table from a certain csv file.
However, the name of this csv file is not constant.
Therefore I would rather like VBA to open a browser screen that shows all
csv files in a specific folder, where the user can just double click the
file that is needed as a source for the query table.

How can I let VBA open a browser window and show me all available CSV files?

Thanks,
Frans


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Make VBA open a browser window

On Thu, 22 Jun 2006 20:54:06 +0200, Frans Verhaar wrote:

Hi,

I have this code in VBA that calls a query table from a certain csv file.
However, the name of this csv file is not constant.
Therefore I would rather like VBA to open a browser screen that shows all
csv files in a specific folder, where the user can just double click the
file that is needed as a source for the query table.

How can I let VBA open a browser window and show me all available CSV files?


With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Filters.Add "csv files", "*.csv"
.Show
If .SelectedItems.Count 0 Then MsgBox .SelectedItems.Item(1)
End With

--
PL
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Make VBA open a browser window

Thanks, that works.

"Piotr Lipski" wrote in
message . ..
On Thu, 22 Jun 2006 20:54:06 +0200, Frans Verhaar wrote:

Hi,

I have this code in VBA that calls a query table from a certain csv file.
However, the name of this csv file is not constant.
Therefore I would rather like VBA to open a browser screen that shows all
csv files in a specific folder, where the user can just double click the
file that is needed as a source for the query table.

How can I let VBA open a browser window and show me all available CSV
files?


With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Filters.Add "csv files", "*.csv"
.Show
If .SelectedItems.Count 0 Then MsgBox .SelectedItems.Item(1)
End With

--
PL



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Make VBA open a browser window

Thanks a lot Piotr. It works fine!
Regards,
Frans

"Piotr Lipski" wrote in
message . ..
On Thu, 22 Jun 2006 20:54:06 +0200, Frans Verhaar wrote:

Hi,

I have this code in VBA that calls a query table from a certain csv file.
However, the name of this csv file is not constant.
Therefore I would rather like VBA to open a browser screen that shows all
csv files in a specific folder, where the user can just double click the
file that is needed as a source for the query table.

How can I let VBA open a browser window and show me all available CSV
files?


With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Filters.Add "csv files", "*.csv"
.Show
If .SelectedItems.Count 0 Then MsgBox .SelectedItems.Item(1)
End With

--
PL



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
Browser window tcbootneck Excel Programming 4 August 30th 05 05:53 PM
file browser window saybut Excel Discussion (Misc queries) 1 August 15th 05 06:06 PM
Open all various hyperlinks in SAME browser window? Michael hauschild Links and Linking in Excel 2 July 13th 05 06:12 PM
open browser window at my given location ilyaskazi Excel Programming 3 June 2nd 05 02:39 PM
Opening browser window Abhay Parekh Excel Programming 1 December 4th 03 08:01 PM


All times are GMT +1. The time now is 06:26 AM.

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

About Us

"It's about Microsoft Excel"