Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Macro to save Single Page to another workbook

Thank you so much. That worked just the way I was hoping it would and I'm so
happy I can finally put this task to rest.

Thank you so much for your prompt response and extremely helpful and
knowledgeable advice.

Have a great rest of the day - Jenny B.





"Dave Peterson" wrote:

You could have your code open the Docking Station workbook and move the
worksheet into that workbook.

Then save the workbook and then close it.

This may give you a start:

Option Explicit
Sub SaveName()

Dim DockWkbk As Workbook
Dim ActWks As Worksheet

Set ActWks = ActiveSheet

Set DockWkbk = Workbooks.Open(Filename:="C:\yourpath\docking station.xls")

ActWks.Move _
befo=DockWkbk.Worksheets(1)

DockWkbk.Save
DockWkbk.Close savechanges:=False

End Sub


Jenny B. wrote:

Good Morning,

I have a question about developing a Macro that takes a single sheet (sheet
would be ActiveSheet) and move it from one Workbook and place it in another.
I've already created a Macro which can take an Active Page and save it to my
desktop, but I cannot quite figure out how to save it to an existing file.

My workbook is located on my Desktop and named "Docking Station". The below
code is what I set-up to originally to just save a single page to my desktop.

Any help would be much appreciated.

Thanks in advance - Jenny B.

Sub SaveName()

ActiveSheet.Move
ChDir "C:\Documents and Settings\My Name\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\My Name\Desktop\New File.xls",
FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
End Sub


--

Dave Peterson

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
cannot email a single page in 2007, as oppossed to whole workbook. Susan77 Excel Discussion (Misc queries) 1 August 24th 07 04:53 PM
How do I save an individual page in a workbook? Sharon Williams Excel Worksheet Functions 2 December 14th 06 02:14 PM
How do I save a single spreadsheet in a workbook in excel Vic Fourie Excel Worksheet Functions 1 July 15th 06 07:56 AM
continuous page numbering multiple sheets of a single workbook? Mulitplesheet numbering Excel Worksheet Functions 1 July 24th 05 03:42 PM
Save a single sheet from a workbook JAMES T. Excel Discussion (Misc queries) 2 January 25th 05 02:16 PM


All times are GMT +1. The time now is 12:51 PM.

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"