Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On my spreadsheet, I merged the cells N10, O10, and P10
into a single cell. I then put the following code in my Worksheet_Change() function: Private Sub Worksheet_Change(ByVal Target As Range) MsgBox CStr(Target.Address(0, 0)) End Sub Now, if you enter data into cell N10 on the spreadsheet, the message box will return with "N10". However, if you DELETE the contents of cell N10, then the message box will say "N10:P10". Why is this?? How can I tell the "Target" variable to just give me "N10" string??? (I guess I'm too lazy to write code that parses range strings, haha) Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet_change question | Excel Programming | |||
Newbie question regarding using Sub Worksheet_change() | Excel Programming | |||
worksheet_change question | Excel Programming | |||
Excel VBA .... Worksheet_Change(ByVal Target As Range) question | Excel Programming | |||
Worksheet_Change event question | Excel Programming |