Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i dim a sub named test(r as range)
And I call this sub in the worksheet_selectionchange event as below But the VB stop it with error messege .said , it need a object how can i solve it? pls help me the program is below: Option Explicit Private Sub Worksheet_SelectionChange(ByVal Target As Range) test(activework.sheets("sheet1").range("A1:B2")) 'this sentense work test (Target) 'this sentense doesnt work End Sub Sub test(r As Range) MsgBox "OK" End Sub help would be appreciate -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Bypass: A program is trying to send mail using Item.Send prompt | Excel Discussion (Misc queries) | |||
Target cell reference moves when target is cut and pasted | Excel Discussion (Misc queries) | |||
My send to in excel/word does not offer send as attachment | Excel Discussion (Misc queries) | |||
Error with Target.Name.Name in Worksheet_Change event | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |