Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2002 sp1
How can I reference, in a sheet module, a value on another sheet? Ex. In a sheet module (Sheet1) I have the following code (simplified for the example): Private Sub Worksheet_Change(ByVal Target As Range) If Range("ceUserName").Value < "Joe" then MsgBox "You are not authorized to change this." Exit Sub End If End Sub Range("ceUserName").Value - is a value from a range on another sheet (Sheet1). It is a simple named cell. My code, here in the sheet module for Sheet 1, will not reference to that value. I get a 1004 error. How can I reference, in a sheet module, a value on another sheet? Thanks for your help, Gregg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How To make a sheet reference Variable (eq: sum(sheet!D2:H2)) | Excel Discussion (Misc queries) | |||
multiple cell reference from sheet to sheet | Excel Worksheet Functions | |||
Relative Sheet Reference (Summary Sheet) | Excel Discussion (Misc queries) | |||
Reference Addin Module from sheet code | Excel Programming | |||
Variable from a sheet module in a class module in XL XP | Excel Programming |