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: 3
Default access cell values

for excel 2000

had this code working fine:
Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$O$21", "$O$22", "$E$7"
targetVariable = ActiveSheet.Range("o$22").Value

then changed code to accomodate using cell names to this:
Sub Worksheet_Change(ByVal Target As Excel.Range)
Select Case Target.Name.Name
Case "stock_price", "xAxisMax"
targetVariable = ActiveSheet.Range.("xAxisMax").value
..... the targetVariable doesn't get populated but there is no error msg

i have tried a bunch of different ways to get the data from the changed
cells from the worksheet_change/select case combinations but nothing seems
to work, it seems i need some other code than 'ActiveSheetRange....' syntax,
it seems to have something to do with changing 'target as range' to 'target
as excel.range'


 
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 lookup values in Access db? 1scant Excel Discussion (Misc queries) 2 June 1st 06 04:04 PM
DCOUNT to Return Values from Access database Tim H Excel Discussion (Misc queries) 5 December 15th 05 10:27 PM
Distributing values from rows to columns for Access import Petterq Excel Worksheet Functions 2 October 10th 05 09:04 PM
Combo Box Values from Access Table? Fattire Excel Discussion (Misc queries) 0 May 24th 05 06:12 PM
Access values from another workbook Grey Excel Programming 2 December 30th 03 05:25 PM


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