Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I programmatically change Link references? | Links and Linking in Excel | |||
ARE THERE CONDITIONAL FORMULAS TO CHANGE TEXT COLOR? | Excel Worksheet Functions | |||
Change cell format programmatically | Excel Programming | |||
Change cell's WIDTH programmatically | Excel Programming | |||
Change cell's WIDTH programmatically | Excel Programming |