Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a worksheet containing cells having text in Column A & in Column B i have cells having formulae in them. column. Using VBA, i am trying to increase / decrease font size of Column A text, based on the formula value returned in Column B cell. for each rr in rng if rr.offset(0,1).hasformula then rr.font.size=rr.offset(0,1).value end if next rr right now, i am unable to get the value returned by the formula using VBA. How to achieve this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Works for me. I added: Set rng = Selection.Cells Also, those values in the next column should be numeric. Better check. -- Jim Cone Portland, Oregon USA http://www.contextures.com/excel-sort-addin.html (review of excel sorting add-in) .. .. .. "noname" wrote in message ... Hi, I have a worksheet containing cells having text in Column A & in Column B i have cells having formulae in them. column. Using VBA, i am trying to increase / decrease font size of Column A text, based on the formula value returned in Column B cell. for each rr in rng if rr.offset(0,1).hasformula then rr.font.size=rr.offset(0,1).value end if next rr right now, i am unable to get the value returned by the formula using VBA. How to achieve this? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Fri, 15 Oct 2010 14:08:05 -0700 (PDT), noname
wrote: Hi, I have a worksheet containing cells having text in Column A & in Column B i have cells having formulae in them. column. Using VBA, i am trying to increase / decrease font size of Column A text, based on the formula value returned in Column B cell. for each rr in rng if rr.offset(0,1).hasformula then rr.font.size=rr.offset(0,1).value end if next rr right now, i am unable to get the value returned by the formula using VBA. How to achieve this? The snippet you post should work, depending on the rest of the code and the contents of rr.offset(0,1). So, what is the rest of the code? What is the actual contents of rr.offset(0,1)? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Picture size increase/decrease in size using code | Excel Programming | |||
**Increase Font Size for Selected Cell** | Excel Programming | |||
Number in cell increase with increase in font size. | Excel Discussion (Misc queries) | |||
Increase font size within my formula bar | Excel Programming | |||
How do I increase the font size in a cell validation list? | Excel Discussion (Misc queries) |