Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default script detecting the change of active cell

Hello,
I am not a user of Excel.
I do programming in vbasic and my code needs some kind of message from
Excel, that the active cell is changed.
Is it possible to have some Excel script detecting that and posting
something to clipboard, for example?
Your thoughts are appreciated.

Please note, that I cannot use Excel events so I cannot use the code as
shown below:

Public WithEvents moExcel As Excel.Application

Private Sub app_SheetSelectionChange(ByVal Sh As Object, ByVal Target As
Excel.Range)
Debug.Print "Selection Changed: " & Sh.Name & ":" & Target.Row & "," &
Target.Column
If Target.Rows.Count 1 Or Target.Columns.Count 1 Then
Debug.Print "multiple cells selected"
End If
End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default script detecting the change of active cell

I don't know how you could trap an Excel event without using Excel events.
Am I missing something here?

--

Vasant


"Jack" <replyto@newsgroup wrote in message
...
Hello,
I am not a user of Excel.
I do programming in vbasic and my code needs some kind of message from
Excel, that the active cell is changed.
Is it possible to have some Excel script detecting that and posting
something to clipboard, for example?
Your thoughts are appreciated.

Please note, that I cannot use Excel events so I cannot use the code as
shown below:

Public WithEvents moExcel As Excel.Application

Private Sub app_SheetSelectionChange(ByVal Sh As Object, ByVal Target As
Excel.Range)
Debug.Print "Selection Changed: " & Sh.Name & ":" & Target.Row & "," &
Target.Column
If Target.Rows.Count 1 Or Target.Columns.Count 1 Then
Debug.Print "multiple cells selected"
End If
End Sub




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
Active Cell To Change Formula PaulW Excel Discussion (Misc queries) 7 September 21st 06 04:03 PM
Cell value - detecting change tgmjf Excel Worksheet Functions 2 July 20th 06 08:12 PM
Change Formatting In 'Active' Cell JB2010 Excel Discussion (Misc queries) 4 February 2nd 06 05:58 PM
Detecting active customview Bart Excel Discussion (Misc queries) 1 December 15th 04 11:24 AM


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