LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Saving the contents of a worksheet table to an xml document when theuser closes the workbook.

How do you save the contents of a worksheet to an xml document when a
user closes the workbook. My first attempt was the following, but it
didn't work...

If ActiveWorkbook.Close Then
MsgBox "Would you like to close the workbook?", vbOKCancel
ActiveWorkbook.XmlMaps("dataroot_Map").Export URL:="Q:\Workforce
\Test.xml"
Sheets("Daily Workforce Data").Range("K1").Value = "=now()"
End If
 
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
Excel closes without saving Dana Excel Discussion (Misc queries) 0 October 4th 06 09:18 PM
Table of Contents Sheet in Workbook Solusvir Links and Linking in Excel 1 August 31st 06 09:47 AM
When saving a worksheet in excel message "document not saved" Dave Peterson Excel Discussion (Misc queries) 0 January 24th 05 11:38 PM
Saving a worksheet out of a workbook Fred Holmes Excel Programming 3 June 15th 04 09:12 PM
When saving add automatically contents of a specified cell in document properties Nadia[_2_] Excel Programming 1 April 23rd 04 03:57 PM


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