Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
From Formula to Value
Can anyone can help how to write the VB code by using of : For Each & Select Case for the purpose of changing all its formula into value in selected cells / area. In addition, it will not get an error message in case of value the cells with 'text'. Thx a lot! -- aw |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
From Formula to Value
You don't need For Each and Select Case to do that. Select your cells and
then simply execute this single statement... Selection.Value = Selection.Value -- Rick (MVP - Excel) "aw" wrote in message ... Can anyone can help how to write the VB code by using of : For Each & Select Case for the purpose of changing all its formula into value in selected cells / area. In addition, it will not get an error message in case of value the cells with 'text'. Thx a lot! -- aw |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
From Formula to Value
It works if it is in regular area.
However it can't work if it is in mutiple cells / area not in regular by one time. For example, select cells N9..P10, R10..R11 & S20..T21 at a time. -- aw "Rick Rothstein" wrote: You don't need For Each and Select Case to do that. Select your cells and then simply execute this single statement... Selection.Value = Selection.Value -- Rick (MVP - Excel) "aw" wrote in message ... Can anyone can help how to write the VB code by using of : For Each & Select Case for the purpose of changing all its formula into value in selected cells / area. In addition, it will not get an error message in case of value the cells with 'text'. Thx a lot! -- aw |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
From Formula to Value
Give this code a try then...
For Each A In Selection.Areas A.Value = A.Value Next -- Rick (MVP - Excel) "aw" wrote in message ... It works if it is in regular area. However it can't work if it is in mutiple cells / area not in regular by one time. For example, select cells N9..P10, R10..R11 & S20..T21 at a time. -- aw "Rick Rothstein" wrote: You don't need For Each and Select Case to do that. Select your cells and then simply execute this single statement... Selection.Value = Selection.Value -- Rick (MVP - Excel) "aw" wrote in message ... Can anyone can help how to write the VB code by using of : For Each & Select Case for the purpose of changing all its formula into value in selected cells / area. In addition, it will not get an error message in case of value the cells with 'text'. Thx a lot! -- aw |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula | Excel Worksheet Functions | |||
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible | Excel Discussion (Misc queries) | |||
Formula expected end of statement error, typing formula into cell as part of VBA macro | Excel Programming | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions | |||
Commenting custom formula fields/formula on formula editor | Excel Programming |