LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Using add-in functions on a form

Can somebody please help me!

I wish to use the function 'WORKDAY' in a VBA routine available from the
Analysis Tool-pak Add-Ins.
I have ticked off the Analysis Toolpak and Analysis Toolpak - VBA
I have used it successfully in a cell so I am sure the format is correct.
E.G. =IF(L3 < "",WORKDAY(L3,AA3,Holiday_List),"")
The result is a date advanced by the value in cell AA3 excluding weekends
and public holidays.
Cell L3 has a date and cell AA3 has an integer number while 'Holiday_List'
has a range of dates.

Below is the code on a form where 'TBoxSDate' is a date and 'TboxDaysPt' is
an integer number.
This is the line:
lblPayDte = Application.WorksheetFunction.WORKDAY(TBoxSDate,
TboxDaysPt,Holiday_List)

When coding the function 'WORKDAY' is not listed after WorksheetFunction so
I realise that it is not available. Why?

When running the form and invoking the line above, it says 'Object Required'

Are Add-in functions noy available within a form?

Peter Bircher


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula (off form) that completes form data based on a result lldiel Excel Worksheet Functions 2 November 24th 09 11:09 PM
excel form. Need data extracted to spreadsheet each time a form co MikeR-Oz Excel Discussion (Misc queries) 4 April 5th 09 05:18 AM
Using a template form, advance a form number everytime you open ShoDan Excel Discussion (Misc queries) 1 January 31st 08 01:34 PM
Form Functions Eric Svatik Excel Discussion (Misc queries) 1 April 29th 07 12:50 AM
how can I make a form number change everytime the form is opened babydumplingspita Excel Worksheet Functions 1 October 10th 05 07:58 PM


All times are GMT +1. The time now is 09:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"