Re: Event Macro - propogate formula
- From: JE McGimpsey <jemcgimpsey@xxxxxxxx>
- Date: Tue, 13 Dec 2005 13:34:57 -0700
If there are no constants, SpecialCells will throw an error. One
modification:
Private Sub Worksheet_BeforeDoubleClick( _
ByVal Target As Range, Cancel As Boolean)
Cancel = True 'Eliminate Edit status due to doubleclick
With Target.EntireRow
.Offset(1, 0).Insert
.Copy .Offset(1, 0).Cells
On Error Resume Next
.Offset(1, 0).SpecialCells(xlConstants).ClearContents
On Error GoTo 0
End With
End Sub
In article <61636E2D-6BE2-49F6-A817-C8158B5EE862@xxxxxxxxxxxxx>,
jct <jct@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> but am getting a debug message on the following line:
> Target.Offset(1).EntireRow.SpecialCells(xlConstants).ClearContents
>
> I need clarification. Any help is appreciated.
.
- Follow-Ups:
- Re: Event Macro - propogate formula
- From: David McRitchie
- Re: Event Macro - propogate formula
- Prev by Date: Re: Saving excel files
- Next by Date: Re: can't change the alignment of numbers in cells
- Previous by thread: Re: Saving excel files
- Next by thread: Re: Event Macro - propogate formula
- Index(es):