+ Reply to Thread
Results 1 to 8 of 8

Create VBA that creates new sheet with data from the main sheet.

  1. #1
    Registered User
    Join Date
    02-27-2021
    Location
    Feira de Santana, Bahia, Brasil
    MS-Off Ver
    2019
    Posts
    5

    Create VBA that creates new sheet with data from the main sheet.

    Hi there! I have a schedule with the dates, days and times that a given person will be the president of a meeting. The Schedule Sheet is in attached in this thread. Note that this file has 2 sheets: The Main Schedule and a Calendar Sheet with some days highlighted.

    WHAT I NEED TO DO:

    I need to create a calendar sheet for every name in the main schedule and in the calendar sheet the days that this name appears need to be highlight (With one color for the morning and another one if it's in the afternoon). I tried to do this using Formulas (And I think it might be possible) but I was unable to do it properly so I tought that this should be possible with VBA, but I'm new to VBA and I don't know how to do it. Can you guys help me?
    Attached Files Attached Files
    Last edited by MrWoggie; 02-28-2021 at 11:04 AM.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Create VBA that creates new sheet with data from the main sheet.

    Hi MrWoggie & welcome to the forum,

    Can you mock manually your expected results for few examples ?

  3. #3
    Registered User
    Join Date
    02-27-2021
    Location
    Feira de Santana, Bahia, Brasil
    MS-Off Ver
    2019
    Posts
    5

    Re: Create VBA that creates new sheet with data from the main sheet.

    I've made some calendars, I will send them to you (if that's what you asked for). It's only one XLSX file with the main sheet and some calendar sheets containing the name of the person and the days that the person's name appears (with yellow highlight for the afternoon and green for the morning).
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-27-2021
    Location
    Feira de Santana, Bahia, Brasil
    MS-Off Ver
    2019
    Posts
    5

    Re: Create VBA that creates new sheet with data from the main sheet.

    Quote Originally Posted by nankw83 View Post
    Hi MrWoggie & welcome to the forum,

    Can you mock manually your expected results for few examples ?
    I've made some calendars, I will send them to you (if that's what you asked for). It's only one XLSX file with the main sheet and some calendar sheets containing the name of the person and the days that the person's name appears (with yellow highlight for the afternoon and green for the morning).
    Attached Files Attached Files

  5. #5
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Create VBA that creates new sheet with data from the main sheet.

    Hi MrWoggie,

    You first have to create the "Calendar Template" sheet as it will be used as a template for each person. Try below code ... I have also attached a sample file
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  6. #6
    Registered User
    Join Date
    02-27-2021
    Location
    Feira de Santana, Bahia, Brasil
    MS-Off Ver
    2019
    Posts
    5

    Re: Create VBA that creates new sheet with data from the main sheet.

    Quote Originally Posted by nankw83 View Post
    Hi MrWoggie,

    You first have to create the "Calendar Template" sheet as it will be used as a template for each person. Try below code ... I have also attached a sample file
    Please Login or Register  to view this content.
    Oh, I got it now! Thanks a lot, I will read this code and try to learn something from it, thanks buddy!

  7. #7
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Create VBA that creates new sheet with data from the main sheet.

    Let me know how it goes .. Also, please don't quote the whole post it just clutter. If necessary, just quote the required part

    As you're new to the forum, you can thank those who have helped by clicking the * icon under their usernames to Add Reputation points to them

  8. #8
    Registered User
    Join Date
    02-27-2021
    Location
    Feira de Santana, Bahia, Brasil
    MS-Off Ver
    2019
    Posts
    5

    Re: Create VBA that creates new sheet with data from the main sheet.

    Ok! Thanks I will add reputation

+ 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] macro creates new sheet and names it, need to create hyperlink to new sheet on main sheet
    By cjburns in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2020, 11:26 AM
  2. Macro filtering on main data sheet and creating new sheet with the results
    By will5will in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2018, 11:43 AM
  3. Create automatically new sheet based on main data sheet
    By manharji in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2016, 11:14 AM
  4. Replies: 6
    Last Post: 07-18-2013, 02:34 AM
  5. Create copy of multiple worksheets and automatically fill in data from a main sheet
    By NMChemEng in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2008, 05:28 PM

Tags for this Thread

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