+ Reply to Thread
Results 1 to 7 of 7

Update sheet code automatically

  1. #1
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Update sheet code automatically

    Good day all,

    I have attached a code to a sheet ("PAGE 3") that based on the cell value of "D10" finds & copies the relevant named range from "List" to the sheet, now this works if entered directly into cell "D10", however this cell will eventually be populated by another sheet (Sheet1 - D5) but when I do this the sheet code doesn't update, is there an easier way to do this or a simpler code that updates automatically? Sample attached, Thank you all & have a great day - Marco
    Attached Files Attached Files
    Last edited by matrixpom; 12-06-2012 at 11:23 PM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Update sheet code automatically

    Hi, Marco
    Worksheet_Change event does not occur when calculations lead to the appearance of another value formula. So try to use the Worksheet_Calculate event.

  3. #3
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Update sheet code automatically

    Hi Nilem,

    Tried changing to "Worksheet_Calculate" sadly this still doesn't update when I go back to "PAGE 3"? This is my code so far...thanks again for any help - Marco

    Please Login or Register  to view this content.

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Update sheet code automatically

    something like this
    Please Login or Register  to view this content.
    Blocks QLD, NSW, etc. (on sheet "List") should be separated from each other by at least one blank line.
    Last edited by nilem; 12-07-2012 at 02:21 AM.

  5. #5
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Update sheet code automatically

    Hi Nilem,
    You'll have to excuse my ignorance here but I've tried all & still no luck I'm afraid...I've uploaded the workbook with your updates? Thanks again Nilem - Marco
    Attached Files Attached Files

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Update sheet code automatically

    It works for me. For example, we choose "QLD" (Sheet1 D5), and we see all that relates to the "QLD" on the sheet "PAGE 3" in cells A12:D35. Or select "NSW" and see on "PAGE 3" all data that relates to the "NSW".
    Have you got it going wrong?

  7. #7
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Update sheet code automatically

    Hi Nilem,

    You were right, my spread sheet was on manual update, don't know how or when it changed from auto but none the less thank you very much & have a great day! - Marco

+ 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