+ Reply to Thread
Results 1 to 10 of 10

Formula refresh

  1. #1
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Formula refresh

    Hi,

    If have formulas in cells that look to other cells to get an answer, but I have to manually use the F2 button as though I have made an edit to the cell and then leaving it, obviously Excel considers this a change and updates the cell and any Conditional formatting then kicks in.

    Is there anyway I can write any code to do this over a large range of cells?

    Thanks
    Antony
    Last edited by antony moseley; 06-02-2010 at 07:14 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Formula refresh

    Have you accidentally set calculation to manual?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Re: Formula refresh

    Hi,

    No cal is on automatic - I have attached an example.

    Basically if I put 1,2 ,3 4,or 5 into the cells on Goods In tab, it will turn a colour, this number feeds in the LT tab, that should turn the same colour, however I then have to do the F2 bit for it to change other, otherwise it doesn’t do anything

    Hopefully it is abit clearer with my issue

    Thanks

    Antony
    Attached Files Attached Files

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Formula refresh

    A worksheet change event only fires when a cell is changed by the user not as the result of a formula change. If the layout is the same you can get rid of the Change event code on the LT sheet and just use this on the LT sheet:

    Please Login or Register  to view this content.

    Dom

  5. #5
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Re: Formula refresh

    Hi,

    Thanks for the above - the LT tab will be made up of several others individual tabs, so the layout wont be the same

    Any other ideas???

    Thanks

    Antony

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Formula refresh

    I guess you could use a worksheet activate or calculate event to loop through and format the cells as you require.

    Dom

  7. #7
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Re: Formula refresh

    HI,

    As much as i would like to say - yeah, i know how to do that..... but i dont.Any pointers on how to do it?


    Thanks

    Antony

  8. #8
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Formula refresh

    Something like this on the LT sheet's code page:

    Please Login or Register  to view this content.

    Dom
    Last edited by Domski; 06-01-2010 at 11:13 AM. Reason: Left an End If in

  9. #9
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Re: Formula refresh

    HI,

    Unless i have read wrong im not sure this works for me - i have attached a version of many tabs to one

    Thanks

    Antony
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    11-24-2008
    Location
    leicester
    MS-Off Ver
    Microsoft 365
    Posts
    161

    Re: Formula refresh

    take it back - the above did work

    Thanks

    Antony

+ 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