+ Reply to Thread
Results 1 to 9 of 9

Help needed on Excluding Weekends

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Help needed on Excluding Weekends

    Hi All,

    I need help to exclude Weekends when i run the macro.

    Here the Code:

    Please Login or Register  to view this content.
    Thanks in advance!!!

    Regards

    Elango

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Help needed on Excluding Weekends

    Can you please post the whole script?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    la roche sur yon, france
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help needed on Excluding Weekends

    you can use the function "weekday"

    Please Login or Register  to view this content.
    note :
    sunday = 1
    monday = 2
    ...

    but you can change these defaults properties by the way

  4. #4
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed on Excluding Weekends

    Hi Solus,

    Apologize for the delay post.

    Please Login or Register  to view this content.
    Hope above script will help..

    Regards

    Elango

  5. #5
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed on Excluding Weekends

    Hi Kiwoop,

    Thanks for your code.

    But still i am not clear about the code. I tried this code an error was occurred

    Elango

  6. #6
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Help needed on Excluding Weekends

    Try:

    Please Login or Register  to view this content.
    Untested.

  7. #7
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed on Excluding Weekends

    Hi Solus,

    Thanks for the try...

    Macro is not working once i click the command button. I will look for some other alternative codes.

    Elango

  8. #8
    Registered User
    Join Date
    06-24-2013
    Location
    la roche sur yon, france
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help needed on Excluding Weekends

    Actually, you add a sheet with the date as name, and you dont want to add sheets for day which are on weekends is that right ?

    The Xero Solus code should work I reckon. Which line do you get the error ?

  9. #9
    Registered User
    Join Date
    10-03-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Help needed on Excluding Weekends

    I found a code to avoid the Weekends.

    Thanks

    Elango

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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