Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default user event driven macro issue

Hi,



There is no event as such but you could do something like that:



Far away on your sheet name a cell like abc end then add the following code
to the module of that sheet:



Private strPlace As String

Private Sub Worksheet_Activate()

strPlace = Range("abc").Address

End Sub





Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Range("abc").Address < strPlace Then



'do some code



strPlace = Range("abc").Address

End If

End Sub






--
JP

http://www.solutionsvba.com


"Dima K." wrote in message
...
I was wondering if it's possible to use an event such as a
user inserting a row in one worksheet to start a
macro/module automatically? thanks for any help and
example code.



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
Macro driven record locator. Malcolm McMaster[_2_] Excel Discussion (Misc queries) 1 March 10th 08 08:43 AM
What code do I use to attach event handler that will open my user. TeresaManley Excel Worksheet Functions 2 May 5th 07 09:55 PM
How can I expose the TextBox BeforeUpdate event to my user class? bereid Excel Discussion (Misc queries) 0 November 30th 05 05:00 PM
user event driven macro issue steve Excel Programming 0 September 18th 03 05:00 PM
Text Box on User Form Set Focus Issue John Flynn Excel Programming 0 September 6th 03 02:41 PM


All times are GMT +1. The time now is 05:43 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"