+ Reply to Thread
Results 1 to 12 of 12

Can I populate multiple sheets with data from one sheet (variable name) is populated?

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    New York City
    MS-Off Ver
    2013
    Posts
    24

    Can I populate multiple sheets with data from one sheet (variable name) is populated?

    My VBA copies two sheets depending on the date. For example, sheet 1 is named "Call sheet for (& Date)". Sheet 2 is named ("Schedule for (& Date)". The dates are the same. However, my code creates (Adds) new sheets from an input box asking the new dates to add when the workbook is first created. It might have only one day all the way up to 10 dates (10 days-20 sheets). So, now I would like to add information (such as another event date/audition date/show end date) in three separate cells (columns C6:C8) within the sheet. The first date is the active sheet name "Call Sheet for & Date". SO I need to now input this new information in the active sheet and also populate all the other sheets that have dates in the sheet's names, either "Call Sheet on" or "Schedule for" sheet if they exist. The VBA sheet code needs to be universal in its design because of the variable sheet names and the copy sheet function when creating the workbook. So far this code works but only for one sheet (sheet 8). Does this make sense? Can you rescue me in this abyss?

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


    And the module that is being called:

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

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    09-15-2014
    Location
    New York City
    MS-Off Ver
    2013
    Posts
    24

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Thank you so much for the reply. Here is the desensitized workbook. The primary purpose for my request is to populate the common data on the sheets after they are created. In an ideal world, the input should take place on the first "Call sheet for mm/dd/yyyy" sheet and then be copied to all others that need this info. I didn't think that an "after" sample was needed but would be happy to do so if you think it might help. Also note, the workbook is used by several folks, hence the need to be as user friendly and automated as possible.

    I really cant thank you enough for your time!
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Hi Casting Director,

    I've submitted this thread to the virtual help forum called "Call in the Cavalry" - your program demands a reference to Outlook 15 and I haven't got it

  5. #5
    Registered User
    Join Date
    09-15-2014
    Location
    New York City
    MS-Off Ver
    2013
    Posts
    24

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Thanks for the forward. I have, perhaps not removed enough of the code to focus on the issue. Still a newbe here.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Hi CD,

    Try this:

    Please Login or Register  to view this content.
    *I thought that I had tried to do what Rory suggested - obviously not
    Last edited by xladept; 06-12-2015 at 05:56 PM.

  7. #7
    Registered User
    Join Date
    09-15-2014
    Location
    New York City
    MS-Off Ver
    2013
    Posts
    24

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Thanks for helping with this! I am getting "Run time error 91" with this line:
    Please Login or Register  to view this content.
    It seems it should work but does not.
    Thoughts?

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Maybe:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-15-2014
    Location
    New York City
    MS-Off Ver
    2013
    Posts
    24

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Hi xladept,
    No Go. I've tweeked until my brain itches. My thought is that if there was a way to "select" an array of sheets containing ("Call Sheet for" & idate) and just populate those sheets I can always use a formula to copy the data over to the other sheets. For some reason the first position of the "Call Sheet for" (also the active sheet in the workbook) still gives a "run time error 91". Finally because the last sheet contains the oldest date (last position) and is the one that gets copied when it's the first sheet that gets activated (because of the sort and activate code). I am wondering if I need to use an array? You've been so helpful, I do not want to over-extend your kindness. Please let me know if this is the case. I will keep Frankensteining code.

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Hi CD,

    I believe that I need a complete record to enter in order to rectify this code f.r.

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    09-15-2014
    Location
    New York City
    MS-Off Ver
    2013
    Posts
    24

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Hi Again xladept,
    I finally found the issue. I needed to copy data to a sheet that acted as the master, which copied itself when dates were added as a new sheet. Confusing....to say the least. Well here is the ONE LINE that I created to an "acvtivate sheet" module for the first/primary sheet:
    Please Login or Register  to view this content.
    This will add the range(s) to each new matching sheet (with date variable in tab name) while the other sheets have formula's to populate the appropriate cells where needed. I am always amazed how the simple code can sometimes fix the nightmare! Many thanks to you for hanging in there and feeding me new thoughts!

    SOLVED
    Last edited by CastingDirector; 06-17-2015 at 01:48 PM. Reason: SOLVED MESSAGE ADDED

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I populate multiple sheets with data from one sheet (variable name) is populated?

    Hi CD,

    Glad you figured it out! Thanks for the rep!

    *Here's how we mark a thread solved

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Populate master sheet from data on multiple sheets
    By jhammond10 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-05-2013, 01:36 PM
  2. Replies: 1
    Last Post: 03-19-2013, 09:57 AM
  3. Replies: 1
    Last Post: 03-19-2013, 09:18 AM
  4. Populate data from one main sheet to multiple sheets
    By dfulmer in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-31-2012, 05:24 PM
  5. Auto Populate Master Sheet with multiple sheets data
    By haley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2009, 04:29 AM

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