+ Reply to Thread
Results 1 to 3 of 3

Save Excel workbook to Desktop Using a Macro

  1. #1
    Marvin
    Guest

    Save Excel workbook to Desktop Using a Macro

    Looking for macro code that will save the current workbook to the desktop of
    the current user that is signed on to XP.

  2. #2
    Ron de Bruin
    Guest

    Re: Save Excel workbook to Desktop Using a Macro

    Hi Marvin

    Test this one

    Sub Desktoptest()
    Dim WSHShell As Object
    Dim DesktopPath As String
    Set WSHShell = CreateObject("WScript.Shell")
    DesktopPath = WSHShell.SpecialFolders("Desktop")
    ActiveWorkbook.SaveAs DesktopPath & "\test.xls"
    Set WSHShell = Nothing
    End Sub


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Marvin" <[email protected]> wrote in message news:[email protected]...
    > Looking for macro code that will save the current workbook to the desktop of
    > the current user that is signed on to XP.




  3. #3
    George King
    Guest

    Re: Save Excel workbook to Desktop Using a Macro


    "Marvin" <[email protected]> wrote in message
    news:[email protected]...
    > Looking for macro code that will save the current workbook to the desktop
    > of
    > the current user that is signed on to XP.


    Try here:
    http://groups.google.com/group/micro...28@tkmsftngp08

    Good luck,
    George



+ 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