#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Easy VBA question


I want to save a cell's formula for later replacement after
I temporarily change the cell content in the macro. I can't
figure out how to save a formula to a var. I can save the value
just fine, but that's not what I want. I know this is basic,
but it's eluding me.

--
dman
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Easy VBA question

try:
strFormula = Range("A1").Formula

"Dallman Ross" wrote:


I want to save a cell's formula for later replacement after
I temporarily change the cell content in the macro. I can't
figure out how to save a formula to a var. I can save the value
just fine, but that's not what I want. I know this is basic,
but it's eluding me.

--
dman

  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Easy VBA question

where strFormula is dimmed as a string.


"Dallman Ross" wrote:


I want to save a cell's formula for later replacement after
I temporarily change the cell content in the macro. I can't
figure out how to save a formula to a var. I can save the value
just fine, but that's not what I want. I know this is basic,
but it's eluding me.

--
dman

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
Easy Question Bob[_8_] Excel Worksheet Functions 9 July 14th 07 03:50 PM
If - easy question mldancing Excel Discussion (Misc queries) 5 March 28th 07 01:26 PM
*EASY* question! Laura \( '_' \) New Users to Excel 3 November 25th 05 01:02 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM
easy question Dahlman Excel Worksheet Functions 3 April 1st 05 11:11 PM


All times are GMT +1. The time now is 11:23 AM.

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"