+ Reply to Thread
Results 1 to 2 of 2

Weekdays - Macro

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Hampshire
    MS-Off Ver
    Excel 2019
    Posts
    38

    Weekdays - Macro

    Hi All,

    I just want to record/write a macro that will hide Sat & Sun in a row of data. Sat & Sun will not always appear in the same cells.

    I have a formula putting in the dates - it may be that one exists that will just bring back the day if it is a working day?

    Hope one of you geniuses can help (again!)

    Many thanks

    Suzanne
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,585

    Re: Weekdays - Macro

    Use:

    WorksheetFunction.Weekday Method (Excel) to check whether it is Saturday or Sunday

    https://msdn.microsoft.com/en-us/lib.../ff839878.aspx



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Create macro to sort and count number of weekdays in year
    By Davelm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 03:31 PM
  2. [SOLVED] Macro/Formula to skip or omit values from weekends to just weekdays.
    By escapes88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2013, 08:00 AM
  3. Weekdays, I wish!
    By AlanWade in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-20-2008, 05:47 AM
  4. Weekdays
    By mangesh in forum Excel General
    Replies: 2
    Last Post: 10-27-2006, 09:37 AM
  5. [SOLVED] Weekdays
    By Jeff in forum Excel General
    Replies: 7
    Last Post: 02-14-2005, 09:06 PM
  6. Replies: 0
    Last Post: 01-27-2005, 04:06 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