Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Remove formula and keed data using VBA

I want to remove formulas from certain cells but leave the data. How can I do
that using VBA?

Thanks, Danny
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Remove formula and keed data using VBA

Same as you would manually: CopyPasteSpecial:Values

Turn on the Macro recorder, do it manually, turn off the recorder and adjust
the resulting code for your situation.

HTH,


"Danny Crowell" wrote in message
...
I want to remove formulas from certain cells but leave the data. How can I
do
that using VBA?

Thanks, Danny



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Remove formula and keed data using VBA

For Each cell In Selection
cell.Value = cell.Value
Next cell

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Danny Crowell" wrote in message
...
I want to remove formulas from certain cells but leave the data. How can I
do
that using VBA?

Thanks, Danny



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
How do I remove data in a row in excel without losing all data in lindad Excel Worksheet Functions 1 April 29th 10 07:18 PM
remove zero from min formula Frenz Excel Discussion (Misc queries) 1 June 19th 09 03:17 PM
How do I remove data fields I do not need from data source? asg2307 Excel Programming 4 December 28th 05 03:31 PM
remove " $ " from formula bill gras Excel Worksheet Functions 4 October 14th 05 01:30 PM
comparing lists of data to remove duplicate data Tom Excel Discussion (Misc queries) 2 October 13th 05 06:16 PM


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