Advertisement

05.03.2006 at 04:05PM PDT, ID: 21837290
[x]
Attachment Details

Forms command button for Chart

Asked by rsknow in Microsoft Excel Spreadsheet Software

Tags: insertvbcomponent, file

This is a puzzle to me.  I have macro that opens a text file, sorts it, etc. and draws a pivot table chart.  I searched EE & found code to import a saved macro to the current workbook (the text file workbook):

InsertVBComponent ActiveWorkbook, "C:\My Documents\GrossPivotUpDate.bas"

All of this works just dandy.  Then I recorded creating a Forms command button & attaching this macro then changing the title to "Select New Department".  Here's the puzzle.  The recorded code will not create the command button when added to the existing macro.  Anyone know what's missing?

This macro is for my use only so I'm not stressed about end users with this one.  I run the CreateGrossPivot macro once a month & I can easily make a command button when the macro is done.  It's just curious.  What's the issue?  Is it because I'm using a form command button on a chart?  I like them because they are easy & allow me to attach an existing macro.

Thanks,

Susan
Start Free Trial
[+][-]05.03.2006 at 04:16PM PDT, ID: 16601381

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.03.2006 at 04:42PM PDT, ID: 16601492

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2006 at 06:13AM PDT, ID: 16614264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2006 at 07:49AM PDT, ID: 16615284

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2006 at 08:03AM PDT, ID: 16615428

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2006 at 08:24AM PDT, ID: 16615650

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: insertvbcomponent, file
Sign Up Now!
Solution Provided By: syntosys
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.05.2006 at 08:47AM PDT, ID: 16615907

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2006 at 09:26AM PDT, ID: 16616281

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32