Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Automaticly saving formula's to values when saving

Is there any way of doing this in Excel? I want certain (not all) formula's
to become value's when saving a file.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Automaticly saving formula's to values when saving

This could be done as a worksheet beforesave event, but you need to be
certain you don't want those formulas again, because once they're gone,
they're gone.
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Gunti" wrote:

Is there any way of doing this in Excel? I want certain (not all) formula's
to become value's when saving a file.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Exactly

Yes this is exactly what i want. Can you maybe get an example of what i
should do? I'll explain, I have a list with values. I'm using this list to
fill in another template. What i want is the template to be independant which
means the formula's that trace the values from the list need to be converted
to values. It doens't matter that they're gone after this action.

Greets,
Gunti


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 105
Default Automaticly saving formula's to values when saving

You can use the event procedure "Workbook_BeforeSave".
Regards.
Daniel

Is there any way of doing this in Excel? I want certain (not all) formula's
to become value's when saving a file.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Automaticly saving formula's to values when saving

Seeing as i have no experience in creating macro's. Can you make an example
where it saves Sheet1'!A3:A5 and Sheet2'!A3:A5 from a formula to value's when
you save?

Greets & Thanks,
Gunti

"Daniel.C" wrote:

You can use the event procedure "Workbook_BeforeSave".
Regards.
Daniel

Is there any way of doing this in Excel? I want certain (not all) formula's
to become value's when saving a file.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 105
Default Automaticly saving formula's to values when saving

Menus Tools / Macro / Visual Basic Editor
double click on "thisworkbook"
if you have more than one open workbook, choose the right one.
Paste the following macro.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
'changes formulas to values for sheet Sheet1, range A1:C10
[Sheet1!A1:C10].Copy
[Sheet1!A1:C10].PasteSpecial xlValues
End Sub
Daniel

Seeing as i have no experience in creating macro's. Can you make an example
where it saves Sheet1'!A3:A5 and Sheet2'!A3:A5 from a formula to value's when
you save?

Greets & Thanks,
Gunti

"Daniel.C" wrote:

You can use the event procedure "Workbook_BeforeSave".
Regards.
Daniel

Is there any way of doing this in Excel? I want certain (not all) formula's
to become value's when saving a file.






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Automaticly saving formula's to values when saving

Thanks, i see there's some effort put into this. I have however a better
idea, is it possible so i can create a 'Save values' button. When i click
this, the following formula's have to be copied and saved:
'Kopgegevens!'C3:C32
'calculatie BR'!F32:F43

Thanks for everything!


"Daniel.C" wrote:

Menus Tools / Macro / Visual Basic Editor
double click on "thisworkbook"
if you have more than one open workbook, choose the right one.
Paste the following macro.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
'changes formulas to values for sheet Sheet1, range A1:C10
[Sheet1!A1:C10].Copy
[Sheet1!A1:C10].PasteSpecial xlValues
End Sub
Daniel

Seeing as i have no experience in creating macro's. Can you make an example
where it saves Sheet1'!A3:A5 and Sheet2'!A3:A5 from a formula to value's when
you save?

Greets & Thanks,
Gunti

"Daniel.C" wrote:

You can use the event procedure "Workbook_BeforeSave".
Regards.
Daniel

Is there any way of doing this in Excel? I want certain (not all) formula's
to become value's when saving a file.






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 105
Default Automaticly saving formula's to values when saving

Sorry for my poor english...
Do you mean that the formulae of range 'Kopgegevens!'C3:C32 are to be
changed into values ?
Display the control toolbox toolbar, choose command button. Draw it on
the sheet, click on "view code" and paste the following code :
Private Sub CommandButton1_Click()
[Kopgegevens!C3:C32].Copy
[Kopgegevens!C3:C32].PasteSpecial xlValues
['calculatie BR'!F32:F43].Copy
['calculatie BR'!F32:F43].PasteSpecial xlValues
End Sub
(the first and last lines should already be automatically generated).
If you have any trouble, I can post the address of a sample file.
Also, if you use XL2007, there are changes in the menus.
Daniel


Thanks, i see there's some effort put into this. I have however a better
idea, is it possible so i can create a 'Save values' button. When i click
this, the following formula's have to be copied and saved:
'Kopgegevens!'C3:C32
'calculatie BR'!F32:F43

Thanks for everything!


"Daniel.C" wrote:

Menus Tools / Macro / Visual Basic Editor
double click on "thisworkbook"
if you have more than one open workbook, choose the right one.
Paste the following macro.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
'changes formulas to values for sheet Sheet1, range A1:C10
[Sheet1!A1:C10].Copy
[Sheet1!A1:C10].PasteSpecial xlValues
End Sub
Daniel

Seeing as i have no experience in creating macro's. Can you make an example
where it saves Sheet1'!A3:A5 and Sheet2'!A3:A5 from a formula to value's
when you save?

Greets & Thanks,
Gunti

"Daniel.C" wrote:

You can use the event procedure "Workbook_BeforeSave".
Regards.
Daniel

Is there any way of doing this in Excel? I want certain (not all)
formula's to become value's when saving a file.








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 a Worksheet/Workbook with VALUES ONLY CAT Excel Discussion (Misc queries) 4 October 2nd 08 06:50 PM
saving values to cells bouncebackability New Users to Excel 2 January 8th 08 08:11 PM
Saving Values in Excel when using RTD nhench Excel Worksheet Functions 4 April 9th 07 06:44 PM
Saving Gazza at emaths Excel Discussion (Misc queries) 1 May 4th 06 12:33 AM
Saving files with a list of values Sérgio Lopes Excel Discussion (Misc queries) 3 March 28th 06 02:17 PM


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