A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Data Analysis Tool



 
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2009, 06:26 PM posted to microsoft.public.excel.worksheet.functions
cesar
external usenet poster
 
Posts: 42
Default Data Analysis Tool

Hello everyone,
I frequently use the Data Analysis Tool, particularly the Histograms, I was
wondering if there is a way to write a macro that does this for me, I've been
using the macro builder to let the machine built it for me folloiwng all the
steps when I do it manually, Tools-Data Analysis-Histogram, selec my Input
Range, Bin Range and Output Range; but when I run the macro it comes with
this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
stops there, this is the code:

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
ActiveSheet.Range("$D$1:$D$21"), False, False _
, False, False _
ActiveWindow.SmallScroll Down:=6

Any help would it be greatly appreciated,
Thanks!
--
Cesar
  #2  
Old February 23rd, 2009, 07:17 PM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default Data Analysis Tool

Hi,

You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
Analysis ToolPak is not enough.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

Hello everyone,
I frequently use the Data Analysis Tool, particularly the Histograms, I was
wondering if there is a way to write a macro that does this for me, I've been
using the macro builder to let the machine built it for me folloiwng all the
steps when I do it manually, Tools-Data Analysis-Histogram, selec my Input
Range, Bin Range and Output Range; but when I run the macro it comes with
this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
stops there, this is the code:

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
ActiveSheet.Range("$D$1:$D$21"), False, False _
, False, False _
ActiveWindow.SmallScroll Down:=6

Any help would it be greatly appreciated,
Thanks!
--
Cesar

  #3  
Old February 23rd, 2009, 07:37 PM posted to microsoft.public.excel.worksheet.functions
cesar
external usenet poster
 
Posts: 42
Default Data Analysis Tool

Thanks Shane,
I Added the under Add-ins the Analysis ToolPak VBA and created the macro
again, but still not working, the macro still stopping at the same
instruction, the code still the same, it didn't change after adding the
Analysis ToolPak VBA if it had to.
Thanks
--
Cesar


"Shane Devenshire" wrote:

Hi,

You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
Analysis ToolPak is not enough.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

Hello everyone,
I frequently use the Data Analysis Tool, particularly the Histograms, I was
wondering if there is a way to write a macro that does this for me, I've been
using the macro builder to let the machine built it for me folloiwng all the
steps when I do it manually, Tools-Data Analysis-Histogram, selec my Input
Range, Bin Range and Output Range; but when I run the macro it comes with
this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
stops there, this is the code:

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
ActiveSheet.Range("$D$1:$D$21"), False, False _
, False, False _
ActiveWindow.SmallScroll Down:=6

Any help would it be greatly appreciated,
Thanks!
--
Cesar

  #4  
Old February 23rd, 2009, 08:07 PM posted to microsoft.public.excel.worksheet.functions
cesar
external usenet poster
 
Posts: 42
Default Data Analysis Tool

Shane,
Sorry for the note, but it did work, I just had to close the Excel
application and reopened again and it worked perfect!

Thanks a lot!!
genious!
--
Cesar


"Shane Devenshire" wrote:

Hi,

You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
Analysis ToolPak is not enough.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

Hello everyone,
I frequently use the Data Analysis Tool, particularly the Histograms, I was
wondering if there is a way to write a macro that does this for me, I've been
using the macro builder to let the machine built it for me folloiwng all the
steps when I do it manually, Tools-Data Analysis-Histogram, selec my Input
Range, Bin Range and Output Range; but when I run the macro it comes with
this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
stops there, this is the code:

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
ActiveSheet.Range("$D$1:$D$21"), False, False _
, False, False _
ActiveWindow.SmallScroll Down:=6

Any help would it be greatly appreciated,
Thanks!
--
Cesar

  #5  
Old February 23rd, 2009, 09:57 PM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default Data Analysis Tool

Hi Cesar,

glad to help and thanks for the feedback.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

Shane,
Sorry for the note, but it did work, I just had to close the Excel
application and reopened again and it worked perfect!

Thanks a lot!!
genious!
--
Cesar


"Shane Devenshire" wrote:

Hi,

You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
Analysis ToolPak is not enough.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

Hello everyone,
I frequently use the Data Analysis Tool, particularly the Histograms, I was
wondering if there is a way to write a macro that does this for me, I've been
using the macro builder to let the machine built it for me folloiwng all the
steps when I do it manually, Tools-Data Analysis-Histogram, selec my Input
Range, Bin Range and Output Range; but when I run the macro it comes with
this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
stops there, this is the code:

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
ActiveSheet.Range("$D$1:$D$21"), False, False _
, False, False _
ActiveWindow.SmallScroll Down:=6

Any help would it be greatly appreciated,
Thanks!
--
Cesar

  #6  
Old February 24th, 2009, 04:44 AM posted to microsoft.public.excel.worksheet.functions
Mike Middleton
external usenet poster
 
Posts: 653
Default Data Analysis Tool

Cesar -

If you'd like a slightly better histogram, see my free Better Histogram
add-in, available at www.treeplan.com. Its VBA code is not protected, and
you might want to borrow it.

- Mike

http://www.MikeMiddleton.com



"Cesar" wrote in message
...
Shane,
Sorry for the note, but it did work, I just had to close the Excel
application and reopened again and it worked perfect!

Thanks a lot!!
genious!
--
Cesar


"Shane Devenshire" wrote:

Hi,

You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
Analysis ToolPak is not enough.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

Hello everyone,
I frequently use the Data Analysis Tool, particularly the Histograms, I
was
wondering if there is a way to write a macro that does this for me,
I've been
using the macro builder to let the machine built it for me folloiwng
all the
steps when I do it manually, Tools-Data Analysis-Histogram, selec my
Input
Range, Bin Range and Output Range; but when I run the macro it comes
with
this error "ATPVBAEN.XLA could not be found", debug the macro and yes,
it
stops there, this is the code:

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
ActiveSheet.Range("$D$1:$D$21"), False, False _
, False, False _
ActiveWindow.SmallScroll Down:=6

Any help would it be greatly appreciated,
Thanks!
--
Cesar



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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