Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 399
Default Save sheet as new file w/o refs to original?

Thanks, Tom. I had a problem, though: run-time error 1004 - "PasteSpecial
method of Worksheet failed". Help said the xlValues was only available to
the Range object, so I changed ActiveSheet to ActiveSheet.Range("A1") and it
worked okay. Is this just a difference, perhaps, in versions (I'm using
XL2000 with Win2000)? Or did I do something wrong?

Ed

"Tom Ogilvy" wrote in message
...
It isn't that hard:

Activesheet.copy
Activesheet.cells.copy
Activesheet.pasteSpecial xlValues
ActiveWorkbook.SaveAs "MyUnlinkedCopy.xls"

--
Regards,
Tom Ogivly

"Ed" wrote in message
...
Is it possible to save a sheet as a separate new file with a single

command
and carry over everything EXCEPT references to the original file? I

tried
it, but instead of values only I get formulas with references back to

the
original workbook. Or will I need to open a new book and do a series of
Paste Specials (values, column widths, formats, etc.)?

Ed






  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Save sheet as new file w/o refs to original?

No. Its called a typo:

Activesheet.copy
Activesheet.cells.copy
Activesheet.cells.pasteSpecial xlValues
ActiveWorkbook.SaveAs "MyUnlinkedCopy.xls"

although range("A1") would work as well.

--
Regards,
Tom Ogilvy



"Ed" wrote in message
...
Thanks, Tom. I had a problem, though: run-time error 1004 - "PasteSpecial
method of Worksheet failed". Help said the xlValues was only available to
the Range object, so I changed ActiveSheet to ActiveSheet.Range("A1") and

it
worked okay. Is this just a difference, perhaps, in versions (I'm using
XL2000 with Win2000)? Or did I do something wrong?

Ed

"Tom Ogilvy" wrote in message
...
It isn't that hard:

Activesheet.copy
Activesheet.cells.copy
Activesheet.pasteSpecial xlValues
ActiveWorkbook.SaveAs "MyUnlinkedCopy.xls"

--
Regards,
Tom Ogivly

"Ed" wrote in message
...
Is it possible to save a sheet as a separate new file with a single

command
and carry over everything EXCEPT references to the original file? I

tried
it, but instead of values only I get formulas with references back to

the
original workbook. Or will I need to open a new book and do a series

of
Paste Specials (values, column widths, formats, etc.)?

Ed








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 undo a "save file" to revert back to original spreadsheet Nikki Excel Discussion (Misc queries) 5 October 29th 08 03:21 AM
auto save excel file every 10 minutes to its original file name MEG Excel Discussion (Misc queries) 3 September 8th 05 07:12 PM
Auto save replaced my original file and now I need the original? Hols Excel Discussion (Misc queries) 1 August 15th 05 10:34 PM
Save sheet as new file w/o refs to original? Ed Excel Programming 0 March 7th 05 03:46 PM
VBA to Save a file to a different format but keep original groutch Excel Programming 4 December 2nd 04 10:48 PM


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