PC Review


Reply
 
 
=?Utf-8?B?ZHdheW5lc3dvcmxk?=
Guest
Posts: n/a
 
      19th Mar 2007
I have a workbook which will automatically save a copy of a roster when
printing the roster and I would like to have this macro break the link to the
main workbook when saving. Here is my current code:

Sub Copy_Save_OneDay_Sheet()
'
' Copy_Save_OneDay_Sheet Macro
'
Sheets("Roster(1 Day)").Select
Sheets("Roster(1 Day)").Copy
Do
fname = Application.GetSaveAsFilename
Loop Until fname <> False Or msoButtonSetCancel

If fname <> False Then
ActiveWorkbook.SaveAs fname
ActiveWorkbook.Close savechanges:=False
End If

End Sub

Can anyone help? Thanks
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      19th Mar 2007
Hi dwaynesworld

You can add code like in the link after you create the new workbook
with Sheets("Roster(1 Day)").Copy

http://www.rondebruin.nl/values.htm



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"dwaynesworld" <(E-Mail Removed)> wrote in message news:B0043273-A92C-42D6-AD49-(E-Mail Removed)...
>I have a workbook which will automatically save a copy of a roster when
> printing the roster and I would like to have this macro break the link to the
> main workbook when saving. Here is my current code:
>
> Sub Copy_Save_OneDay_Sheet()
> '
> ' Copy_Save_OneDay_Sheet Macro
> '
> Sheets("Roster(1 Day)").Select
> Sheets("Roster(1 Day)").Copy
> Do
> fname = Application.GetSaveAsFilename
> Loop Until fname <> False Or msoButtonSetCancel
>
> If fname <> False Then
> ActiveWorkbook.SaveAs fname
> ActiveWorkbook.Close savechanges:=False
> End If
>
> End Sub
>
> Can anyone help? Thanks

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Break links Robert Microsoft Excel Discussion 1 5th Apr 2008 01:02 PM
Help to Break links please!! =?Utf-8?B?ZXdhbjcyNzk=?= Microsoft Excel Programming 3 20th Aug 2007 04:12 PM
Break Links =?Utf-8?B?U2Vhbg==?= Microsoft Excel Misc 1 25th Oct 2006 03:34 PM
Break Links =?Utf-8?B?SmF6eg==?= Microsoft Excel Setup 1 3rd Mar 2004 02:14 AM
why can't break links? Ian Elliott Microsoft Excel Misc 1 29th Jul 2003 01:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:52 AM.