Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default copy result from a .xls file to another without macro

So Hello,

I would like to save only the results of my sheets not the macro that
generates it so I have done this:

Sub workbook_open()

Dim dtmSave As Date
Dim dtmSave As Date

OpenProgram 'Macro that open PackHedge

Application.Cursor = xlWait ' Cursor in clock shape
DoEvents

On Error Resume Next
dtmTime = Now + TimeValue("00:00:07") 'After seven seconds the
macros has been launched
Application.OnTime dtmTime, "thisworkbook.operations" 'Open the
sub in thisworkbook
Application.Cursor = xlDefault
Application.DisplayAlerts = False
Sheets(Array("Read Me", "File ", "Pages", "Values")).Copy
ActiveWorkbook.SaveAs Filename:= _
"C:\test\test_save.xls", ReadOnlyRecommended:=False,
CreateBackup:=False
Application.DisplayAlerts = True
dtmSave = dtmTime + TimeValue("00:00:30")
Application.OnTime dtmSave, "thisworkbook.Save_Exit"


End Sub
....


My original file is test and I would like to have only the result in
test1 and not in test. The trick is that I have the result in test and
this code delete all the module of my test_save.xls and that's all.

How can I do to delete the macro only and keep the result? i already
try to do a macro in order (using vbcomponents) to delete it but
didn't work.

Ina

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
Copy file with a macro Brettjg Excel Discussion (Misc queries) 2 March 2nd 07 01:46 AM
copy multiple worksheets of a workbook, and paste onto a Word document ( either create new doc file or paste onto an existing file.) I need this done by VBA, Excel Macro Steven Excel Programming 1 October 17th 05 08:56 AM
VBA Macro to copy an column from one Excel file into another file Sam Excel Programming 4 July 3rd 05 03:36 AM
Macro Help...Copy form txt file tratliff Excel Programming 0 August 4th 04 04:51 PM
File Copy Macro Nigel Bishop Excel Programming 2 January 22nd 04 06:36 PM


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