WaqasTariq
Board Regular
- Joined
- Jun 26, 2012
- Messages
- 58
- Office Version
- 365
Hi,
I am trying to make use of the histogram add-in in a macro but it errors out saying "Run-time error '1004':", here is the code.
I found a fix for this on MS site, but that too errors out saying the same.
I have enabled the Analysis tool pack.
Any help will be more than appreciated!
I am trying to make use of the histogram add-in in a macro but it errors out saying "Run-time error '1004':", here is the code.
Code:
Application.Run "ATPVBAEN.XLAM!Histogram", ActiveSheet.Range("B2:B17") _
, ActiveSheet.Range("I1"), ActiveSheet.Range("E1:E24"), False, False _
, False, False
I found a fix for this on MS site, but that too errors out saying the same.
Code:
Application.Run "'Analysis Toolpak - VBA'!Histogram", _
ActiveSheet.Range("B2:B17"), ActiveSheet.Range("I1"), _
, ActiveSheet.Range("E1:E24"), False, False, False, False
I have enabled the Analysis tool pack.
Any help will be more than appreciated!
Last edited: