Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Save file -prompt

Is it possible to have the save file prompt to be like Windows and allow
the user to browse the folder they want to save the file?

Sub SaveChartAsGIF()
fname = thisworkbook.Path & "\" & ActiveChart.Name & ".gif"
ActiveChart.Export Filename:=fname, FilterName:="GIF"
MsgBox (fname)
End Sub

The current macro is saved in the personal folder located in the XLstart
directory so that is where the chart is being saved. That folder is
difficult to navigate to, and the files gif files try to open in Excel
when Excel starts.

I need to distribute this macro to mgmt so they can update certain
intranet pages.

Any other suggestions for easily saving the gif without having to
manually typing the address in an input box?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Save file -prompt

I think I figured it out ( or least this seems to work for now)


Sub SaveChartAsGIF()
Dim spath As String
Dim fname As String
spath = ActiveWorkbook.Path
fname = spath & "\" & ActiveChart.Name & ".gif"
ActiveChart.Export Filename:=fname, FilterName:="GIF"
MsgBox (fname)
End Sub

Scott wrote:

Is it possible to have the save file prompt to be like Windows and allow
the user to browse the folder they want to save the file?

Sub SaveChartAsGIF()
fname = thisworkbook.Path & "\" & ActiveChart.Name & ".gif"
ActiveChart.Export Filename:=fname, FilterName:="GIF"
MsgBox (fname)
End Sub

The current macro is saved in the personal folder located in the XLstart
directory so that is where the chart is being saved. That folder is
difficult to navigate to, and the files gif files try to open in Excel
when Excel starts.

I need to distribute this macro to mgmt so they can update certain
intranet pages.

Any other suggestions for easily saving the gif without having to
manually typing the address in an input box?


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
Turning off prompt to save file with no changes opieandy Excel Discussion (Misc queries) 5 May 23rd 07 10:51 PM
Prompt to save file Gloria Setting up and Configuration of Excel 2 May 4th 06 01:09 AM
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Save without prompt and Activate a file mok707 Excel Programming 1 August 19th 04 09:02 AM
Prompt user to save their file Sharon[_5_] Excel Programming 4 September 29th 03 09:44 PM


All times are GMT +1. The time now is 12:00 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"