Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Saving Excel document without macros

Hi,

I have a document that runs periodically a macro to treat data that a
collect from an external device.
I want to save this new data in a woorkbook withou the macro.
How can I do that?

Thanks in advance

Rui


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Saving Excel document without macros

Hi, Rui. Something like this might help:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=359

*******************
~Anne Troy

www.OfficeArticles.com


"Rui Álvares" wrote in message
...
Hi,

I have a document that runs periodically a macro to treat data that a
collect from an external device.
I want to save this new data in a woorkbook withou the macro.
How can I do that?

Thanks in advance

Rui




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Saving Excel document without macros

Hi Rui,

If the data is held in one worksheet "Data" (say) and the VBA code is in a
standard module, then

Sub CodelessWorkbook()

'Create a new singlesheet workbook
ThisWorkbook.Sheets("Data").Copy

'Save and name the new workbook
ActiveWorkbook.SaveAs "NewFileName"

End Sub

Change Data to your sheet name.

---
Regards,
Norman



"Rui Álvares" wrote in message
...
Hi,

I have a document that runs periodically a macro to treat data that a
collect from an external device.
I want to save this new data in a woorkbook withou the macro.
How can I do that?

Thanks in advance

Rui



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
saving an excel document as a PDF Rich Burf Excel Discussion (Misc queries) 4 October 1st 09 01:14 PM
Saving Excel Document to PDF Brett Excel Discussion (Misc queries) 4 August 21st 07 12:45 AM
Saving Document in Excel Sam Excel Discussion (Misc queries) 6 July 11th 06 04:03 PM
Automatically Saving an Excel Document as a Web Page Danimagus Excel Discussion (Misc queries) 0 June 1st 05 06:34 PM
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM


All times are GMT +1. The time now is 04:22 AM.

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"