Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default activate VB code for any WS in a single WB


What I need to happen is:
- target WB is opened
- then, anytime any WS, in the target WB, is the _active_ WS
(regardless of how many other WB's are open), then have the code
identified as "Workbook_Activate" (below) be activated once a certain
action takes place (i.e. cursor moves based on an entry being made in a
specific column).

I have used code similar to the following, but is not functioning as
desired. Suggestions for a workable solution??

-------------------------------

Sub Workbook_Open()
''Call the 'sub'
Workbook_Activate
End Sub

-------------------------------
Sub Workbook_Activate()
Workbook_Activate
End Sub

-------------------------------
Sub Workbook_Deactivate()
Workbook_Deactivate
End Sub

= = = = = = = = = = = = = = = =


--
itsthebike
------------------------------------------------------------------------
itsthebike's Profile: http://www.excelforum.com/member.php...o&userid=27425
View this thread: http://www.excelforum.com/showthread...hreadid=559549

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
Run Code On Activate Theresa Excel Worksheet Functions 5 December 18th 07 05:47 AM
Activate code from another VBAProject MVM Excel Programming 2 November 5th 05 07:05 PM
? activate a commandbutton in code ? tad_wegner[_6_] Excel Programming 1 October 10th 05 04:43 PM
Activate code in cell Steve Excel Programming 5 August 18th 05 07:44 PM
Macro to activate VB Code Larry Excel Programming 8 October 14th 04 09:30 PM


All times are GMT +1. The time now is 09:33 PM.

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"