Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Update Links on Save | Excel Discussion (Misc queries) | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
Save As and save current numbers not the actual formulas and links | Excel Discussion (Misc queries) | |||
VBA to stop XL from adding the Path Sring to Sheet-to-Sheet Links | Excel Discussion (Misc queries) | |||
Cannot save external links? | Excel Worksheet Functions |