Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default in VBA script, make cell values = formula value, not formula

Here is a snippet of my code:
Range("Z2:Z100).FormulaR1C1 =
"=IF(ISBLANK(RC1),"""",CONCATENATE(VLOOKUP(msr!R2C 2,tbl.markets,2,0),(TEXT(msr!R4C2,""mmddyy"")),""-"",(TEXT(ROW(RC[-25])-1,""000""))))"
Columns("Z:Z").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks:=True, Transpose:=False
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default in VBA script, make cell values = formula value, not formula

Part of my question disappeared!
So question is, instead of selecting then copying and pasting values. I want
the values to get dumped straight in. Like killing the formula after I'm done
with it only not by cutting and pasting values. Make sense?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default in VBA script, make cell values = formula value, not formula

Nevermind. I found the answer on Ron's Excel Tips. So easy, yet so elusive.
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 make a formula to multiply two values? Morfeo Excel Worksheet Functions 6 January 28th 08 04:15 PM
How do I make a formula automatically detect changes in values LMoore Excel Worksheet Functions 1 March 28th 07 04:44 PM
How to make a formula with < or> in a cell RickyBubbalu Excel Discussion (Misc queries) 2 August 19th 05 11:07 AM
Help with formula to make cell blank Inspector Excel Worksheet Functions 5 November 18th 04 08:15 PM
how to make a chart from formula values? VBA Jerrimiah Excel Programming 4 June 21st 04 08:53 PM


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