+ Reply to Thread
Results 1 to 3 of 3

Export with save as dialog

  1. #1
    Registered User
    Join Date
    08-09-2005
    Posts
    42

    Export with save as dialog

    Hello,

    this is my code, which I use to expor my charts as gifs:

    Sub export_charts()

    Worksheets("Graphs").ChartObjects(1) _
    .Chart.Export _
    FileName:="Total.gif", FilterName:="GIF"

    Worksheets("Graphs").ChartObjects(2) _
    .Chart.Export _
    FileName:="months.gif", FilterName:="GIF"

    Worksheets("Graphs").ChartObjects(3) _
    .Chart.Export _
    FileName:="weeks.gif", FilterName:="GIF"

    MsgBox "Export complete", vbInformation

    End Sub


    But I want export my charts with save as dialog to specify my own path.

    Could anyone help???

    Thanks...

    tommy
    Last edited by tommy_gtr; 11-22-2005 at 06:17 AM.

  2. #2
    Philip
    Guest

    RE: Export with save as dialog

    this will do it:

    >>> CODE >>>>

    sPath= Application.GetSaveAsFilename
    <<< END CODE <<<<

    HTH

    Philip

    "tommy_gtr" wrote:

    >
    > Hello,
    >
    > this is my code, which I use to expor my charts as gifs:
    >
    > Sub export_charts()
    >
    > Worksheets("Graphs").ChartObjects(1) _
    > .Chart.Export _
    > FileName:="Total_GRPs.gif", FilterName:="GIF"
    >
    > Worksheets("Graphs").ChartObjects(2) _
    > .Chart.Export _
    > FileName:="Avr_months.gif", FilterName:="GIF"
    >
    > Worksheets("Graphs").ChartObjects(3) _
    > .Chart.Export _
    > FileName:="Avr_weeks.gif", FilterName:="GIF"
    >
    > MsgBox "Export complete", vbInformation, "TV Campaign Level"
    >
    > End Sub
    >
    > But I want export my charts with save as dialog to specify my own
    > path.
    >
    > Could anyone help???
    >
    > Thanks...
    >
    > tommy
    >
    >
    > --
    > tommy_gtr
    > ------------------------------------------------------------------------
    > tommy_gtr's Profile: http://www.excelforum.com/member.php...o&userid=26089
    > View this thread: http://www.excelforum.com/showthread...hreadid=487146
    >
    >


  3. #3
    Registered User
    Join Date
    08-09-2005
    Posts
    42

    save as

    thanks a lot,

    I try to implement it, but I have a little problem with syntax in my case.

    tommy

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1