PC Review


Reply
Thread Tools Rate Thread

How To Assigned "SelectionChange" Event To different Worksheets

 
 
G
Guest
Posts: n/a
 
      27th May 2010
I was able to assign To WorkSheet the SelectionChange event.

It turns out that it was my 2nd Sheet. How do I Add Selectionchange to my
1st worksheet. ???

Thank You,


 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      28th May 2010
cut/paste

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"G" <(E-Mail Removed)> wrote in message
news:870C97F9-3951-4FDE-8C84-(E-Mail Removed)...
>I was able to assign To WorkSheet the SelectionChange event.
>
> It turns out that it was my 2nd Sheet. How do I Add Selectionchange to
> my
> 1st worksheet. ???
>
> Thank You,
>
>


 
Reply With Quote
 
B Lynn B
Guest
Posts: n/a
 
      28th May 2010
In the VB editor window, there should be a frame on the left hand side that
displays the project objects. If it's not showing, Ctrl-R will bring it up.
You'll see the name of your workbook as one of the VBAProject folder items.
Under that (when uncolapsed), is a folder titled Microsof Excel Objects,
under which you find the sheet and workbook objects in your file.

Double click the sheet where you want to add a Selection_Change event to
open its code window. With that frame's upper left dropdown, select
Worksheet. With the upper right dropdown, select SelectionChange.

"G" wrote:

> I was able to assign To WorkSheet the SelectionChange event.
>
> It turns out that it was my 2nd Sheet. How do I Add Selectionchange to my
> 1st worksheet. ???
>
> Thank You,
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      28th May 2010
You may be able to use the Workbook_SheetSelectionChange (in the ThisWorkbook
module).

Or even put a common routine in a general module that each
worksheet_selectionchange event calls (passing nice parms).

(If it's a small procedure and I only need for a couple of sheets, I'd follow
Don's suggestion!)

G wrote:
>
> I was able to assign To WorkSheet the SelectionChange event.
>
> It turns out that it was my 2nd Sheet. How do I Add Selectionchange to my
> 1st worksheet. ???
>
> Thank You,


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: How To Assigned "SelectionChange" Event To different Worksheets FSt1 Microsoft Excel Programming 0 27th May 2010 10:41 PM
Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint" Karoo News Microsoft Excel Programming 1 30th Jan 2006 02:40 PM
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" =?Utf-8?B?THVj?= Microsoft Excel Programming 2 28th Sep 2005 08:37 PM
Re: "variable undeclared/never assigned" error on "Public Shared" Panel Control VB Programmer Microsoft VB .NET 7 21st Oct 2003 05:05 PM
HELP: "variable undeclared/never assigned" error on "Public Shared" Panel Control VB Programmer Microsoft VB .NET 0 20th Oct 2003 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:57 PM.