Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving only values


I believe this is simple I just don’t know how to do it. Lets say I have
a file called “Maker” that gets its data for various places. I want to
SAVE this as “Maker II” but only now with the values of the cells not
the actual links.

Thank you for your help.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=564808

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Saving only values

with workbooks("Maker.xls")
for each sh in .worksheets
sh.cells.formula = sh.cells.value
next
.SaveAs Thisworkbook.path & "\Maker II.xls"
end with

--
Regards,
Tom Ogilvy

"sungen99" wrote:


I believe this is simple I just dont know how to do it. Lets say I have
a file called €śMaker€ť that gets its data for various places. I want to
SAVE this as €śMaker II€ť but only now with the values of the cells not
the actual links.

Thank you for your help.


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=564808


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving only values


Tom, I did the following with your code but it seems to just lock my
computer up. Made this a button macro. Should it be used someother
way?

__________________________________________________ __________


Sub Button5_Click()

With Workbooks("Maker.xls")
For Each sh In .Worksheets
sh.Cells.Formula = sh.Cells.Value
Next
..SaveAs ThisWorkbook.Path & "\Maker II.xls"
End With

End Sub


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=564808

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Saving only values

This might help. But I wouln't see it locking anything up.


Sub Button5_Click()
dim calc as Long
calc = Application.Calculation
Application.Calculation = xlManual
With Workbooks("Maker.xls")
For Each sh In .Worksheets
sh.Usedrange.Cells.Formula = sh.UsedRange.Cells.Value
Next
.SaveAs .Path & "\Maker II.xls"
End With
Application.Calculation = xlAutomatic
End Sub

--
Regards,
Tom Ogilvy


"sungen99" wrote:


Tom, I did the following with your code but it seems to just lock my
computer up. Made this a button macro. Should it be used someother
way?

__________________________________________________ __________


Sub Button5_Click()

With Workbooks("Maker.xls")
For Each sh In .Worksheets
sh.Cells.Formula = sh.Cells.Value
Next
.SaveAs ThisWorkbook.Path & "\Maker II.xls"
End With

End Sub


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=564808


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving only values


Works flawlessly! Thank you Tom!


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=564808

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
saving values without formulas? Sandre Excel Discussion (Misc queries) 0 February 9th 09 06:58 PM
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 09:34 AM
saving values to cells bouncebackability New Users to Excel 2 January 8th 08 08:11 PM
Saving Values Cathy W[_2_] Excel Programming 7 December 20th 05 07:22 PM
Saving values during installation of Add-In Red[_4_] Excel Programming 2 December 15th 05 01:09 PM


All times are GMT +1. The time now is 08:16 PM.

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"