+ Reply to Thread
Results 1 to 2 of 2

Workday() function - Analysis Toolpak

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Workday() function - Analysis Toolpak

    Hello,

    This is my first post on this forum. I am having difficulty with the Workday function in the Analysis Toolpak.

    It's an ideal function for what I wish to achieve, and I can use it effectively in Excel.

    For the life of me though, I can't seem to get it operating in VBA. I am attempting to call it from WorksheetFunction, but it doesn't appear in my list of properties, despite having both Toolpaks installed.

    ***EDIT - Solved. I had to go Tools->References and check the atpvbaen.xla addition. Workday functions now calling properly.
    Unsure how to mark topic as solved.****


    The task I wish to achieve is simple - add 4 working days to a given date. Presuming the date is in cell A1, the formula =Workday(A1,4) works a treat (disregarding holidays at the moment).

    I believe that if the Analysis Toolpak - VBA is installed then Application.WorksheetFunction.WorkDay(arguments) should work - but it doesn't register?

    When viewing Tools->AddIns in the VB editor nothing is displayed. Should the Toolpak show on this menu?

    My VBA is 'developing'...it's been many years since I fiddled with code (Javascript as a child), and I can't seem to successfully replicate a WorkDay function with VBA. I'm close, but no cigar.

    Does anybody have any suggestions? I'm all googled out.

    Any help would be greatly appreciated.

    Thanks,

    Mike
    Last edited by MikeMelbourne; 05-27-2010 at 01:08 AM.

  2. #2
    Registered User
    Join Date
    05-26-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Workday() function - Analysis Toolpak

    Sorry, I should have searched.
    This article: http://www.cpearson.com/Excel/BetterWorkday.aspx looks like it will solve my headaches.

    Responses still welcome - using the existing Workday function (or Networkdays) would be my preferred option.

    Thanks,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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