View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mauro Gamberini[_3_] Mauro Gamberini[_3_] is offline
external usenet poster
 
Posts: 12
Default ignoring a sub routine

Try:

Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
'code
End Sub

--
---------------------------
Mauro Gamberini
http://www.riolab.org/
"SU123" ha scritto nel messaggio
...
i have two subroutines
1. on double click insert a line using Private Sub
Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

2. on enter resize cells (as some of my cells are merged and autofit does
not work) - using rivate Sub Worksheet_Change(ByVal Target As Range)
function.

The issue i have is when calling function/sub 1, function/sub 2 is
automatically activated and causes an error.
is there a way that i can have function/sub one ignore function/sub 2.

Thanx in advance