Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Access toolpak program from Addins

I am trying to access Histogram analysis functionality from Data Analysis
addin from within VBA but it couldn't find the macro even when I point it to
the folder where the file ATPVBAEN.XLA resides. I originally recorded the
statement as a macro and edit the program from there. The following statement
does not work in VBA.

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$B$11:$B$178") _
, ActiveSheet.Range("$G$3"), ActiveSheet.Range("$A$11:$A$19"),
False, True _
, True, False

Any suggestion?
--
Gracebewithyouall
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Access toolpak program from Addins

You need to load the addin named 'Analysis ToolPack - VBA' to run the
procedures in VBA code.

Your code should run OK

--
Cheers
Nigel



"linchih" wrote in message
...
I am trying to access Histogram analysis functionality from Data Analysis
addin from within VBA but it couldn't find the macro even when I point it

to
the folder where the file ATPVBAEN.XLA resides. I originally recorded the
statement as a macro and edit the program from there. The following

statement
does not work in VBA.

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$B$11:$B$178") _
, ActiveSheet.Range("$G$3"), ActiveSheet.Range("$A$11:$A$19"),
False, True _
, True, False

Any suggestion?
--
Gracebewithyouall



Reply
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
Access program golfmancan Excel Discussion (Misc queries) 2 August 5th 08 04:52 PM
How do I access an unopened spreadsheet from a program? Pete at Sappi Fine Paper Excel Programming 8 June 8th 05 04:11 PM
Excel/Access Program Dan[_36_] Excel Programming 1 June 24th 04 12:12 PM
Calling Access Program from Excel John Baker Excel Programming 1 April 24th 04 01:20 PM
How to access a called sub program to edit? ChuckM[_2_] Excel Programming 1 January 19th 04 09:15 PM


All times are GMT +1. The time now is 01:48 PM.

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

About Us

"It's about Microsoft Excel"