+ Reply to Thread
Results 1 to 15 of 15

Need a macro to update worksheets as master is updated, HELP!!

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Need a macro to update worksheets as master is updated, HELP!!

    Hey All,

    What I am after is essentially something that will allow me to seperate out quotes into seperate spreadsheets based on the Region codes as in the attached document.

    As someone generates a new quote number in the master sheet (they just manually enter the next number) then it assigns the entire data column to the correct worksheet in the next available row based on the region input which is either VIC, NSW, SA, etc.

    Can someone help me here?

    Cheers,
    Brendan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    wow you file is so big for no reason......
    your backgroundworksheet should not be required
    if you delete that sheet your file shrinks to 130kb instead of 6mb!

    can you show an example of what you actually want done...your file is just a blank template i dont know what you want done where
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    04-05-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need a macro to update worksheets as master is updated, HELP!!

    Hi,

    what i am after is the sample entry data as attached to automatically copy/be linked into the appropriate worksheet tab underneath.
    So when someone enters either VIC, SA, or other options, the data entered updates in quote numerical order based on ref number for each state...

    have tried some stuff but getting nowhere. made it blank because i thought it would be easier.
    Appreciate the reply.

    Cheers,
    Brendan
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-05-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need a macro to update worksheets as master is updated, HELP!!

    but also, the master data needs to stay as is in numerical order based on ref # as entered.

  5. #5
    Registered User
    Join Date
    04-05-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need a macro to update worksheets as master is updated, HELP!!

    sorry missed updating the specific tabs. Please see the attached.

    Thanks again.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    ok your master sheet is where you enter the data manually (including your ref#) and you want each tab to draw off master sheet automatically?

  7. #7
    Registered User
    Join Date
    04-05-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need a macro to update worksheets as master is updated, HELP!!

    Yep that's correct.

    Cheers.
    Brendan

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    ok
    your code for region
    will it be your sheet name?

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    ive only did the rows up to 50 to keep the size of the file smaller
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    i made it run off the sheet name to make the coding easier to create new sheets
    you could probably make it a bit faster if you just have the code region somewhere on the sheet instead
    instead of having
    MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,100) in every single cell needlessly

    the formula that drives everything is CSE formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-05-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need a macro to update worksheets as master is updated, HELP!!

    hey thanks for this, much appreciated.

    Is there something i can do for if there are two revisions ie: rev a and rev b but same quote number? currently if i enter quote number 1234 for example then put rev a, the below enter same number with rev b, it changes both in the worksheets for rev b.

    Wondering if there is something i can do to get around that?

    Cheers

  12. #12
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    didnt know that was part of criteria but sounds plausible

    Will have a look on monday

  13. #13
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    ive changed the structure a little bit

    the main code has been moved out to helper column in V which you can hide
    cell V1 now contained the sheetname formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    cell V8 contained the workhorse of the helper column and ultimately how the whole sheet times in together
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    returns the row reference from master sheet

    regardless of ref# rev# etc, so you can have REV A B C D ETC it does not matter

    all it does is count and return in sequence (very important it is in sequence in comparison to master sheet) based on Region only
    ie if there are 10 VIC it will return 10 lines of VIC
    1 to 10 in order of how it appears in master sheet

    The INDEX formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    runs against the header in row 7
    bare this in mind when you are amending the sheet

    all formulas have small arrays to keep the file size down
    you may need to extend your real sheet to make it work for you
    you can also make file smaller by deleting blank information for individual sheets
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    04-05-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need a macro to update worksheets as master is updated, HELP!!

    Hi, thanks for this.

    Can i just drag all the formulas out for however many cells i require, or will i need to modify anything if i drag them out for say, 3000 cells?

    Cheers.

  15. #15
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Need a macro to update worksheets as master is updated, HELP!!

    sorry had to wait until i came back into office

    For your master sheet
    you can go down as many lines as you want no issues
    on the state sheet
    you need to amend the formula in column V

    V1 does not need to change
    from v8 down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    change A37 and D37 to how many rows you have used in your master sheet

    you will also need to amend the index formula to extend the number of rows used in master sheet
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    change 101 to 3000


    alternatively used named range

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    state = 'Master Sheet'!$A$5:$A$3000

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Msheet ='Master Sheet'!$A$4:$U$3000

    replace 3000 in both to be how many rows you have filled in master sheet
    Last edited by humdingaling; 08-10-2014 at 08:37 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I would like to append and update excel master workbook with new and updated rows.
    By uvwaves in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2013, 03:14 PM
  2. i need to update one master file when different files are updated
    By hattisaeed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2011, 05:33 PM
  3. Update worksheets automatically when Master Sheet is updated
    By ApothecaryFairy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-04-2008, 01:43 PM
  4. Replies: 1
    Last Post: 10-04-2007, 02:26 AM
  5. [SOLVED] Macro to Check all Worksheets for an Entry and to Update the Master Sheet Accordingly
    By thead in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2005, 09:05 PM

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