Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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" wrote in message ...
Looking for macro code that will save the current workbook to the desktop of
the current user that is signed on to XP.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Save Excel workbook to Desktop Using a Macro


"Marvin" wrote in message
...
Looking for macro code that will save the current workbook to the desktop
of
the current user that is signed on to XP.


Try he
http://groups.google.com/group/micro...@tkms ftngp08

Good luck,
George


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
Can I save an excel worksheet as my desktop image? sjp Excel Discussion (Misc queries) 2 August 21st 09 01:10 AM
Macro to save excel sheet in a workbook [email protected] Excel Discussion (Misc queries) 1 March 7th 07 02:37 PM
Macro - Save file in Desktop Dileep Chandran Excel Worksheet Functions 2 December 1st 06 08:37 AM
Macro in Excel 2002 to save a workbook to a FTP location Lloyd Excel Discussion (Misc queries) 0 December 21st 04 02:49 PM
Save web page as desktop file from Excel/VBA ExcelMonkey[_152_] Excel Programming 1 June 17th 04 03:59 AM


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