Remove formula and keed data using VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Thanks, Danny
 
Same as you would manually: Copy>PasteSpecial:Values

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

HTH,
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top