Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Browse function

Hi,

I have a macro which saves parts of the active excell file into anothe
(new) file. The location where this new file is saved is currently th
active path. Does any one know of a way to make this path flexible i.e
let the user select the path through a browse dialog (or something lik
that)

many thanks in advance!!
maarte

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default Browse function

Maarten

You could show the user the save as dialog using the GetSaveAsFileName
Method

Dim sFileName As String
sFileName = Application.GetSaveAsFilename(FileFilter:="Microso ft Excel
Workbook, *.xls")

Then use the variable as the name of the file to save. (The method returns
false if the user cancels the dialog)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Bijl167 " wrote in message
...
Hi,

I have a macro which saves parts of the active excell file into another
(new) file. The location where this new file is saved is currently the
active path. Does any one know of a way to make this path flexible i.e.
let the user select the path through a browse dialog (or something like
that)

many thanks in advance!!
maarten


---
Message posted from
http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Browse function

thanks!


---
Message posted from http://www.ExcelForum.com/

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
Trying to browse Add-ins???? [email protected] Excel Discussion (Misc queries) 1 March 5th 08 08:47 PM
Browse Desktop jason2444 Excel Discussion (Misc queries) 0 August 6th 07 09:22 PM
Browse desktop jason2444 Excel Discussion (Misc queries) 0 November 29th 06 04:44 PM
Pls add browse button for Hyperlink function Katharine Hu Excel Worksheet Functions 0 July 17th 06 07:13 AM


All times are GMT +1. The time now is 12:07 PM.

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"