+ Reply to Thread
Results 1 to 11 of 11

Display current week's data only on multiple worksheets

  1. #1
    Registered User
    Join Date
    10-27-2021
    Location
    New Zealand
    MS-Off Ver
    On Windows 10
    Posts
    9

    Display current week's data only on multiple worksheets

    I have about 13 sheets and would love to have a VBA that will only show the current weeks worth of data on each sheet

    On a side note, can i still access the previous weeks data by manual filtering? Date is in column A BTW

    Thanks in Advance gurus!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Help! Is it possible for Worksheet to display current weeks data only?

    I would suggest that you use VBA to use Autofilter, which can also be used manually. If you attach your actual file we can provide the code that will work with your file. See yellow banner at the top of the page.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-27-2021
    Location
    New Zealand
    MS-Off Ver
    On Windows 10
    Posts
    9

    Re: Display current week's data only on multiple worksheets

    I think its uploaded now. So essentially it would only apply to all the sheets except branch results and branch network results
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Display current week's data only on multiple worksheets

    How do you define a week? Mon-Sun or Sun-Sat?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Display current week's data only on multiple worksheets

    Here is a version that treats Monday as the first day of the week. To change to a different date change the following line of code to any other day of the week:

    Please Login or Register  to view this content.

    I did not put any controls on a worksheet to run the macro. You can run it from the macros list by calling FilterAllSheetsForThisWeek.

  6. #6
    Registered User
    Join Date
    10-27-2021
    Location
    New Zealand
    MS-Off Ver
    On Windows 10
    Posts
    9

    Re: Display current week's data only on multiple worksheets

    Thank you so much, who do i add the macro button?

  7. #7
    Registered User
    Join Date
    10-27-2021
    Location
    New Zealand
    MS-Off Ver
    On Windows 10
    Posts
    9

    Re: Display current week's data only on multiple worksheets

    Quote Originally Posted by 6StringJazzer View Post
    Here is a version that treats Monday as the first day of the week. To change to a different date change the following line of code to any other day of the week:

    Please Login or Register  to view this content.

    I did not put any controls on a worksheet to run the macro. You can run it from the macros list by calling FilterAllSheetsForThisWeek.
    Sorry i did get the button to work

    The only thing though is it filters out the current week as well.

    For example if i put in todays date, and hit the button it will clear the current weeks data. Can i have it so it will keep the current weeks worth on screen?

    Say for example as soon as i put in something next monday, and hit clear, all of this weeks data will filter out.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Display current week's data only on multiple worksheets

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  9. #9
    Registered User
    Join Date
    10-27-2021
    Location
    New Zealand
    MS-Off Ver
    On Windows 10
    Posts
    9

    Re: Display current week's data only on multiple worksheets

    Apologies - active thread here mrexcel.com/board/threads/is-it-possible-for-worksheet-to-display-current-weeks-data-only.1199694/#post-5855252[/url]

    but i cant get this to work. I also did one on redit but i forgot my log in so cant get in to get the link.

    The sheet attached when i went in and added data and hit filter it took away the current week and grouped all the rows up to row 20

  10. #10
    Registered User
    Join Date
    10-27-2021
    Location
    New Zealand
    MS-Off Ver
    On Windows 10
    Posts
    9

    Re: Display current week's data only on multiple worksheets

    Was this sufficient enough to continue?

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Display current week's data only on multiple worksheets

    Yes. I built a solution that should work, and if you find it's not working then I would request that you provide a file with more complete data for testing.

+ 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. Sheet linked to only display current week data
    By tomcrawford in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-08-2022, 08:27 AM
  2. [SOLVED] Display tasks planned for current week
    By Zahid0111 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2021, 09:23 AM
  3. UserForm with that shows Previous Week Data and allows you to update current week
    By hicks1ch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2014, 09:47 AM
  4. [SOLVED] Display the first day of the current week in a cell. Updates via a macro button
    By jclark4321 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2013, 06:51 PM
  5. Display Current Week # according to range.
    By lxa8888 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2012, 05:20 PM
  6. Display Current Week in Excell
    By RR01 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2012, 03:17 AM
  7. [SOLVED] Looking for Fomula to display week in Current Quarter
    By Cra5h in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-13-2012, 03:21 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