LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default HELP!! Change formulas programmatically -- all I get is text!

Thank you to everyone!

The problem was in the REF sheet. All of the cells were formatted as text,
so everytime that a cell was brought into the sheet that referred to the REF,
it brought the text formatting along with it.

Thanks again!
--
Sandy


"Sandy" wrote:

Hello -

I need to change the formulas in a cell depending on what button the user
clicks; DIV1 or DIV2. The following formula is in the cell at startup:
=IF(G35="No",REF!F35,IF(G35="n/a",REF!F35,""))

If the user clicks DIV2, the formula should change to:
=REF!C200
I tried the following and it just puts text in the cell:
Sheet21.Range("I35").Formula = "=REF!C200"

If the user clicks DIV1, I tried the following, which also just puts the
text of the formula in the cell:
Sheet21.Range("I35").Formula =
"=IF(G35=""No"",REF!F35,IF(G35=""n/a"",REF!F35,""""))"

What am I doing wrong?

Any help will be greatly appreciated!! The users expect me to miraculously
fix this by tomorrow a.m. YIKES! (There are about 25 formulas, not related
to each other)

--
Sandy

 
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 can I programmatically change Link references? Boulder_dude Links and Linking in Excel 5 June 20th 08 09:44 PM
ARE THERE CONDITIONAL FORMULAS TO CHANGE TEXT COLOR? CGaufin Excel Worksheet Functions 2 November 9th 06 06:23 PM
Change cell format programmatically Robert[_19_] Excel Programming 1 January 6th 04 05:04 PM
Change cell's WIDTH programmatically Marat Excel Programming 1 August 27th 03 03:31 PM
Change cell's WIDTH programmatically Marat Excel Programming 0 August 27th 03 03:23 PM


All times are GMT +1. The time now is 12:34 AM.

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"