LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default Excel - create button to replace cell content with cell value

Ctrl_Z will not work after running a macro, thus you have to rethink
Peo's comments.
Still, if you want a macro which will replace all formulas of a
selection to values, use this:

Sub FormulasToValues()
' Assumes the desired range has been selected first
Dim c as Range
For each c in Selection
c.FormulaR1C1 = c.Value
next c
End Sub

HTH
Kostis Vezerides

 
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
How do you use EXCEL formula in properties of file (cell content) chiefcook Excel Discussion (Misc queries) 1 November 10th 05 04:53 PM
Can I find and replace "white space" in a cell in Excel? biggyb75 Excel Worksheet Functions 7 July 11th 05 04:58 PM
How can I create a new line in a cell in Excel by hitting enter? Monica Excel Discussion (Misc queries) 4 July 1st 05 06:32 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
how do i create a blank cell in excel using a formula Tosh Excel Worksheet Functions 1 November 2nd 04 04:22 PM


All times are GMT +1. The time now is 05:35 AM.

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"