Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Add code to Private Sub ComboBox1_Change() with a macro from a different workbook

Is there a way to write code to Private Sub ComboBox1_Change() on one
workbook from a macro in another.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Add code to Private Sub ComboBox1_Change() with a macro from a different workbook

See Chip Pearson's site on this

http://www.cpearson.com/excel/vbe.htm

You should be able to use such code from another workbook.

--
Regards,
Tom Ogilvy

"help_wanted " wrote in message
...
Is there a way to write code to Private Sub ComboBox1_Change() on one
workbook from a macro in another.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Add code to Private Sub ComboBox1_Change() with a macro from a different workbook

Tom,
Thanks for the response but this link only shows how to add code t
or create a new module. I need to add code only to a sheet in th
separate woorkbook. Specifically to add if /then statements to

Private Sub ComboBox1_Change()

in a sheet in the separate workbook

Thanks again

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Add code to Private Sub ComboBox1_Change() with a macro from a different workbook

"Creating An Event Procedure"

tells how to do what you want. The example is for the thisworkbook module,
but just changing thisworkbook to sheet1 for example, should get the job
done. Adjust to refer to the other workbook as well.

--
Regards,
Tom Ogilvy

"help_wanted " wrote in message
...
Tom,
Thanks for the response but this link only shows how to add code to
or create a new module. I need to add code only to a sheet in the
separate woorkbook. Specifically to add if /then statements to

Private Sub ComboBox1_Change()

in a sheet in the separate workbook

Thanks again.


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Add code to Private Sub ComboBox1_Change() with a macro from a different workbook

Still not sure exactly what im supposed to do here. Does anyone hav
some sample code for how this can be accomplished

--
Message posted from http://www.ExcelForum.com

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
How to code VBA: Auto open workbook and run macro March Excel Discussion (Misc queries) 4 November 8th 07 08:25 PM
VBA Code to kick off macro when workbook command to close is initi zulfer7 Excel Discussion (Misc queries) 2 June 23rd 06 08:04 PM
VBA Code To have a macro repeat on all sheets in a workbook carl Excel Worksheet Functions 3 November 3rd 05 07:48 PM
Place code in a new workbook with a macro. help_wanted Excel Programming 1 April 1st 04 04:51 PM
VBA code to delete VBA code in another Workbook Chip Pearson Excel Programming 0 September 15th 03 03:54 PM


All times are GMT +1. The time now is 04:20 AM.

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"