Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is a quick and fast way to delete a row that is
double clicked by the user? I know I must handle the Worksheet_BeforeDoubleClick() function and the "Target" parameter. What comes next? Using Excel's "Record Macro" function, it generated the following code to delete a row: (Row 12 was clicked here) Rows("12:12").Select Selection.Delete Shift:=xlUp I need to somehow incorporate the "Target" parameter into the Rows object, right? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Robert,
Am Tue, 9 Apr 2013 03:13:43 -0700 schrieb Robert Crandal: Rows("12:12").Select try: Target.EntireRow.Delete Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Claus Busch" wrote:
try: Target.EntireRow.Delete Awesome! I like that better than the code that Excel's "Record Macro" function generates. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel files not opening when double clicked | Excel Discussion (Misc queries) | |||
Executing Code When Cell Is Double Clicked. | Excel Programming | |||
UserForms and double-clicked worksheets... | Excel Programming | |||
Change cell value when right-clicked/double-clicked | Excel Programming | |||
VB6, How do i open (instead of edit) an excel OLE doc when it is double clicked? | Excel Programming |