Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Macro launches after activating a range of cells

I would like to run a macro upon the selection of a cell within a given range.
The following code works, but runs the macro upon selection of the entire
column...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 5 Then LayoutType.Show
End Sub

So I wondering if something along the lines of...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Range = E6:E1006 Then LayoutType.Show
End Sub

.... however this doesn't work

Any help with this would be appreciated
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
Excel launches AOL too HeyMary Excel Discussion (Misc queries) 0 December 25th 08 03:23 PM
Activating macro on enter. Priya Gautam Excel Worksheet Functions 2 June 3rd 08 01:43 PM
Activating a Macro d_kight New Users to Excel 5 June 30th 06 07:46 PM
activating cells Ryan H. Excel Programming 1 August 1st 04 02:29 AM
Subscript our of range when activating a worksheet J.E. McGimpsey Excel Programming 0 October 7th 03 07:12 PM


All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"