Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Controls on Chart Forget assigned Macros.

Hello,

I have a combo box on my chart.
I have writtten a (Sub) procedure in a class module.
ComboBox calls the Sub A.
Works Accurately, but when I reopen my file, code does not run by ComboBox
and I have to re-assign Sub A to the combo box.

How can I resolve this??

JB
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Controls on Chart Forget assigned Macros.

Thanks for Reply Mr. Peltier,

I have moved code to the regular module.
Problem did not fix.

JB


"Jon Peltier" wrote:

The combo box should be assigned to a procedure in a regular code module,
unless you have defined a class module to capture ComboBox events, in which
case you need to instantiate the combo box as an instance of the class when
the workbook opens.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Hello,

I have a combo box on my chart.
I have writtten a (Sub) procedure in a class module.
ComboBox calls the Sub A.
Works Accurately, but when I reopen my file, code does not run by ComboBox
and I have to re-assign Sub A to the combo box.

How can I resolve this??

JB




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Controls on Chart Forget assigned Macros.

After assigning the macro to the combobox, has the file been saved?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Thanks for Reply Mr. Peltier,

I have moved code to the regular module.
Problem did not fix.

JB


"Jon Peltier" wrote:

The combo box should be assigned to a procedure in a regular code module,
unless you have defined a class module to capture ComboBox events, in
which
case you need to instantiate the combo box as an instance of the class
when
the workbook opens.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Hello,

I have a combo box on my chart.
I have writtten a (Sub) procedure in a class module.
ComboBox calls the Sub A.
Works Accurately, but when I reopen my file, code does not run by
ComboBox
and I have to re-assign Sub A to the combo box.

How can I resolve this??

JB






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Controls on Chart Forget assigned Macros.

Hi,
Yes!
Does it has any connection with Protect-Unprotect Sheet?
JB

"Jon Peltier" wrote:

After assigning the macro to the combobox, has the file been saved?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Thanks for Reply Mr. Peltier,

I have moved code to the regular module.
Problem did not fix.

JB


"Jon Peltier" wrote:

The combo box should be assigned to a procedure in a regular code module,
unless you have defined a class module to capture ComboBox events, in
which
case you need to instantiate the combo box as an instance of the class
when
the workbook opens.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Hello,

I have a combo box on my chart.
I have writtten a (Sub) procedure in a class module.
ComboBox calls the Sub A.
Works Accurately, but when I reopen my file, code does not run by
ComboBox
and I have to re-assign Sub A to the combo box.

How can I resolve this??

JB






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Controls on Chart Forget assigned Macros.

I don't think so, but if the control (or rather its shape container) is
locked, then maybe you cannot press it to activate the macro. When you right
click to assign a macro, is any macro already selected for the control? It's
a Forms menu control, right?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Hi,
Yes!
Does it has any connection with Protect-Unprotect Sheet?
JB

"Jon Peltier" wrote:

After assigning the macro to the combobox, has the file been saved?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Thanks for Reply Mr. Peltier,

I have moved code to the regular module.
Problem did not fix.

JB


"Jon Peltier" wrote:

The combo box should be assigned to a procedure in a regular code
module,
unless you have defined a class module to capture ComboBox events, in
which
case you need to instantiate the combo box as an instance of the class
when
the workbook opens.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Jahanzaib" wrote in message
...
Hello,

I have a combo box on my chart.
I have writtten a (Sub) procedure in a class module.
ComboBox calls the Sub A.
Works Accurately, but when I reopen my file, code does not run by
ComboBox
and I have to re-assign Sub A to the combo box.

How can I resolve this??

JB








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
Macros in Personal.xls that would create two toolbars and buttonswith assigned macros Brian Day Excel Programming 1 March 29th 07 11:20 PM
Command/Menu bar & assigned macros RITCHI Excel Programming 1 January 30th 07 12:01 AM
Assigned macros change location markvi Excel Discussion (Misc queries) 3 April 6th 06 06:48 PM
Running macros assigned to toolbars eve chapman Excel Programming 0 August 6th 03 10:33 PM


All times are GMT +1. The time now is 10:31 PM.

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

About Us

"It's about Microsoft Excel"