PC Review


Reply
Thread Tools Rate Thread

Analysis Toolpak - VBA add-in

 
 
VBA_EE_Engr
Guest
Posts: n/a
 
      29th Sep 2008
How do I use the analysis toolpak for VBA? I loaded the add-in, but I can't
seem to find any of the functions, and it asks for a password to open the
atpvbaen project.
 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      29th Sep 2008
you don't need to open it.

just use the functions, for example,

=eomonth(a1,1)

if a1 has a date in it

--


Gary

"VBA_EE_Engr" <(E-Mail Removed)> wrote in message
news9C46F79-B468-4C80-A7BD-(E-Mail Removed)...
> How do I use the analysis toolpak for VBA? I loaded the add-in, but I
> can't
> seem to find any of the functions, and it asks for a password to open the
> atpvbaen project.



 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      29th Sep 2008
If speed is important, eg calling the ATP multiple times, set a reference to
Atpvbaen.xls in Tools References. Otherwise use Application.Run

Sub test()
Dim start_date As Date, eom As Date
Dim months
start_date = Date
months = 12
' with a ref to the addin works fast
eom = EoMonth(start_date, months) ' with the ref
MsgBox eom

months = 1

' this works without the ref but much slower
eom = Application.Run("EoMonth", start_date, months)
MsgBox eom
End Sub

Regards,
Peter T


"VBA_EE_Engr" <(E-Mail Removed)> wrote in message
news9C46F79-B468-4C80-A7BD-(E-Mail Removed)...
> How do I use the analysis toolpak for VBA? I loaded the add-in, but I
> can't
> seem to find any of the functions, and it asks for a password to open the
> atpvbaen project.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002 Analysis ToolPak Regression Analysis Help Requested MH Microsoft Excel Worksheet Functions 1 28th Feb 2009 07:16 AM
Analysis Toolpak-Confidence Level and data analysis questions MH Microsoft Excel Worksheet Functions 0 3rd Jan 2009 06:15 PM
'Analysis Toolpak' is checked, but 'Data Analysis' did not appear =?Utf-8?B?d29uZGVyaW5n?= Microsoft Excel Crashes 0 16th Aug 2005 02:07 AM
Analysis ToolPak installed but no Data Analysis option =?Utf-8?B?RXJpYyBTdGVwaGVucw==?= Microsoft Excel Misc 3 2nd Feb 2005 09:17 PM
Analysis ToolPak =?Utf-8?B?Sg==?= Microsoft Excel Worksheet Functions 3 19th Nov 2003 01:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 AM.