Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save sheet without links

Hi I have the following code. However I would like the sheet to be save
with values only no links is there a way to do this thanks

Private Sub Sheet_Save()
a = ActiveSheet.Name
b = ActiveWorkbook.Name
Set myBook = Workbooks.Open(Filename:="C:\Documents an
Settings\default\Desktop\ORLSCH Stor-BK\Backup " & b)

c = ActiveWorkbook.Name
Workbooks(b).Activate
Worksheets(a).Activate
ActiveSheet.Copy after:=Workbooks(c).Sheets(1)
ActiveSheet.Move after:=Sheets(Sheets.Count)
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub

Rod Taylo

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Save sheet without links

Hello Rod
Use PasteSpecial:
Worksheets(a).Cells.Copy
Workbooks(c).Sheets(1).Range("A1").PasteSpecial Paste:=xlValues
Application.CutCopyMode = False

HTH
Regards
Pascal

"rjtaylor " a écrit dans le
message de ...
Hi I have the following code. However I would like the sheet to be saved
with values only no links is there a way to do this thanks

Private Sub Sheet_Save()
a = ActiveSheet.Name
b = ActiveWorkbook.Name
Set myBook = Workbooks.Open(Filename:="C:\Documents and
Settings\default\Desktop\ORLSCH Stor-BK\Backup " & b)

c = ActiveWorkbook.Name
Workbooks(b).Activate
Worksheets(a).Activate
ActiveSheet.Copy after:=Workbooks(c).Sheets(1)
ActiveSheet.Move after:=Sheets(Sheets.Count)
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub

Rod Taylor


---
Message posted from http://www.ExcelForum.com/



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
Update Links on Save Barb Reinhardt Excel Discussion (Misc queries) 0 April 8th 08 02:06 PM
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
Save As and save current numbers not the actual formulas and links Frank Menard Excel Discussion (Misc queries) 2 November 9th 06 09:18 PM
VBA to stop XL from adding the Path Sring to Sheet-to-Sheet Links [email protected] Excel Discussion (Misc queries) 5 August 18th 06 01:46 PM
Cannot save external links? KRAMER Excel Worksheet Functions 0 June 6th 05 04:56 AM


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