LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default Selection Change Event

I am trying to write a macro that pulls R values from trendlines any time a
common variable is changed. The variable is stored in "k2," and I have tried
to run this using the following code placed in "ThisWorkbook":

Public myRange As Range
Set myRange = Worksheets(1).Range("K2")
Private Sub Worksheet_SelectionChange(ByVal myRange As Excel.Range)
Call getRvalues
End Sub

It's not working, and I'm not sure why. I bet it has something to do with
my range declaration, but can someone confirm that? When I'm working with
events, what's the proper way to declare variables and objects relating to
these events?

Thanks,
Pflugs
 
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
How to use selection change instead of double click event? ghost Excel Discussion (Misc queries) 1 December 26th 08 04:58 AM
Selection Change Event Jim Thomlinson[_3_] Excel Programming 0 April 28th 05 05:36 PM
Selection Change Event Jim Thomlinson[_3_] Excel Programming 3 April 28th 05 10:01 AM
Selection Change Event... Juan Sanchez Excel Programming 1 May 28th 04 10:16 PM
Autofilter.Selection - After Change Event??? Paul M.[_2_] Excel Programming 0 August 15th 03 05:16 AM


All times are GMT +1. The time now is 11:49 PM.

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"