+ Reply to Thread
Results 1 to 4 of 4

highlighting area used for formula - ajit

  1. #1
    Div. F-II
    Guest

    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?



  2. #2
    Jim May
    Guest

    Re: highlighting area used for formula - ajit

    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" <[email protected]> wrote in message
    news:%[email protected]...
    > 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?
    >
    >




  3. #3
    Jim May
    Guest

    Re: highlighting area used for formula - ajit

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



    "Jim May" <[email protected]> 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" <[email protected]> wrote in message
    > news:%[email protected]...
    > > 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?
    > >
    > >

    >
    >




  4. #4
    Ajit Munj
    Guest

    Re: highlighting area used for formula - ajit

    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" <[email protected]> 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" <[email protected]> wrote in message
    > > news:%[email protected]...
    > > > 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?
    > > >
    > > >

    > >
    > >

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1