+ Reply to Thread
Results 1 to 3 of 3

VBA - copy data from daily sheets and paste on main sheet

  1. #1
    Registered User
    Join Date
    12-08-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2

    VBA - copy data from daily sheets and paste on main sheet

    Hi there, i am new to VBA and have been learning recently. need some help with running something for my sch proj.

    I need to copy data from all the sheets labelled "monday", "tuesday", to ... "friday" to my main sheet , "Data sheet". Is there a way to copy the data from respective day sheets, based on the day of the week and paste it in the "data sheet"?

    My data in my day sheets are from "AB1: AG9" and i would like to copy them and paste them (as values) to the "B1:G9" of my main sheet.

    Any help on this is greatly appreciated. THank you.

    JB.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,521

    Re: VBA - copy data from daily sheets and paste on main sheet

    Attach a workbook that also shows results.
    At the top yellow banner it explains how to attach a file.

    Re: "based on the day of the week"
    Maybe explain what you mean by this also. I think we know but just to avoid confusion.

  3. #3
    Registered User
    Join Date
    12-08-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2

    Re: VBA - copy data from daily sheets and paste on main sheet

    Hi there, I really appreciate your help in this and you replying to my post.

    I have data from column G onwards in daily sheets "Monday", Tuesday ... and the actual data starts in column H.

    I want to:

    1. based on the day of the week. Eg: If today is Monday > copy from "Monday"
    2. Copy the data from column H onwards to the last column with available data
    3. Paste onto "main sheet" from column B onwards as values and keep formatting
    4. Clear all the data from previous day except column A
    5. Arrange the pasted data by grouping those with the same "fav food". Eg: for Tuesday, when i copy the data over to my mainsheet, i would want to arrange the data with the users who likes "sushi" first then those who likes bento (Jasmine,Jasmine,Sam,Sam,Brenda) - this will repeat itself if there are more fav food added

    I appreciate ur help very much in looking at this for me, and i thank you sincerely sir/mdm.
    Attached Files Attached Files

+ 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. Search multiple headings in other sheet, copy data and paste in main file
    By Zahid0111 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2020, 10:09 AM
  2. Copy and transfer data from a Main sheet to two sheets based on two conditions
    By Joky in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 07-30-2017, 02:22 PM
  3. VBA formula to copy paste selected data from main sheet to new sheet
    By vbanoob123 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-24-2014, 12:28 PM
  4. Replies: 1
    Last Post: 03-28-2013, 02:49 PM
  5. [SOLVED] Macro to get/copy data from multiple secondary sheets to main sheet
    By CaatalyyN616 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-29-2012, 04:22 AM
  6. copy data from main sheet to respective sub sheets
    By sshanku1985 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-14-2011, 12:26 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