Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
aw aw is offline
external usenet poster
 
Posts: 19
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default 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   Report Post  
Posted to microsoft.public.excel.programming
aw aw is offline
external usenet poster
 
Posts: 19
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default 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
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
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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