ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   highlighting area used for formula - ajit (https://www.excelbanter.com/excel-discussion-misc-queries/29355-highlighting-area-used-formula-ajit.html)

Div. F-II

highlighting area used for formula - ajit
 
d1=sum(a1:b2), d3=sum(a3:b4)+c3
I want excel to highlight (fill colour) the cells which are
included in sum formula. How can I do this?

Some time when I double click the divider of two rows (faint line between
two rows where cursor changes double headed) to autofit the height of row,
it does not change automatically the height of that row containing a
particular text. I have to manually drag it to adjust the height the row
containing text. Why it is like this?



Jim May

Paste this function into a standard module (adding it (Hasformula) to your
active functions list).

Highlite the range, say D1:D3, then at the menu select Format, Conditional
Formatting
FormulaIs, =Hasformula(D1), your pattern choice, then
OK,
OK.
Done.
HTH

"Div. F-II" wrote in message
...
d1=sum(a1:b2), d3=sum(a3:b4)+c3
I want excel to highlight (fill colour) the cells which are
included in sum formula. How can I do this?

Some time when I double click the divider of two rows (faint line between
two rows where cursor changes double headed) to autofit the height of row,
it does not change automatically the height of that row containing a
particular text. I have to manually drag it to adjust the height the row
containing text. Why it is like this?





Jim May

opps,
Function HasFormula(cell)
HasFormula = cell.HasFormula
End Function



"Jim May" wrote in message
news:D2Woe.66522$sy6.58876@lakeread04...
Paste this function into a standard module (adding it (Hasformula) to your
active functions list).

Highlite the range, say D1:D3, then at the menu select Format, Conditional
Formatting
FormulaIs, =Hasformula(D1), your pattern choice, then
OK,
OK.
Done.
HTH

"Div. F-II" wrote in message
...
d1=sum(a1:b2), d3=sum(a3:b4)+c3
I want excel to highlight (fill colour) the cells which are
included in sum formula. How can I do this?

Some time when I double click the divider of two rows (faint line

between
two rows where cursor changes double headed) to autofit the height of

row,
it does not change automatically the height of that row containing a
particular text. I have to manually drag it to adjust the height the row
containing text. Why it is like this?







Ajit Munj

Hello Jim,
What do you mean by active function list?How to paste it into Standard Module?
I copied your code and pasted it by :
Tools Macro Visual Basic Editor
saved the macro and followed your next instructions, but its not
working.Where did
I go wrong? I want to highligh (Fill Colour) the cells which are included in
Formula
e.g. if a1 contains the formula =b2+c3+d1:d3, then the cells b2,c3,d1:d3
should be
highlighted with colour. Pl. guide.
--
Knowldege is Power


"Jim May" wrote:

opps,
Function HasFormula(cell)
HasFormula = cell.HasFormula
End Function



"Jim May" wrote in message
news:D2Woe.66522$sy6.58876@lakeread04...
Paste this function into a standard module (adding it (Hasformula) to your
active functions list).

Highlite the range, say D1:D3, then at the menu select Format, Conditional
Formatting
FormulaIs, =Hasformula(D1), your pattern choice, then
OK,
OK.
Done.
HTH

"Div. F-II" wrote in message
...
d1=sum(a1:b2), d3=sum(a3:b4)+c3
I want excel to highlight (fill colour) the cells which are
included in sum formula. How can I do this?

Some time when I double click the divider of two rows (faint line

between
two rows where cursor changes double headed) to autofit the height of

row,
it does not change automatically the height of that row containing a
particular text. I have to manually drag it to adjust the height the row
containing text. Why it is like this?









All times are GMT +1. The time now is 10:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com