Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Charles
 
Posts: n/a
Default Save Data not Formulas

Is there a way to save just the data in a spreadshhet and not the formulaes
from a VBA Module.
--
CharlesM
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

For each worksheet in that workbook, you can copy|paste special|values and save
it as a new workbook.

Option Explicit
Sub testme()

Dim wks As Worksheet
Dim newWkbk As Workbook

ActiveWorkbook.Worksheets.Copy 'to a new workbook
Set newWkbk = ActiveWorkbook

For Each wks In newWkbk.Worksheets
With wks.UsedRange
.Copy
.PasteSpecial Paste:=xlPasteValues
End With
Next wks

Application.CutCopyMode = False

MsgBox "Please save this new workbook!"

End Sub


Charles wrote:

Is there a way to save just the data in a spreadshhet and not the formulaes
from a VBA Module.
--
CharlesM


--

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
Can Excel recognize when data is entered and apply formulas? cwool4512 Excel Worksheet Functions 2 July 7th 05 07:58 PM
When I change my data, my formulas don't update the answers,why? ayprlthing Excel Discussion (Misc queries) 6 June 18th 05 03:05 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Pull Current Month's Data Out of List - Repost Karl Burrows Excel Discussion (Misc queries) 4 May 3rd 05 01:06 AM
Formulas in source data Ken Charts and Charting in Excel 3 December 1st 04 05:43 PM


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