+ Reply to Thread
Results 1 to 2 of 2

Worksheet_Change Event Want to fill down formula without formatting

Hybrid View

HaroonSid Worksheet_Change Event Want... 01-31-2017, 06:51 AM
JOHN H. DAVIS Re: Worksheet_Change Event... 01-31-2017, 08:43 AM
  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Worksheet_Change Event Want to fill down formula without formatting

    hi, everyone

    i am using below code to copy and filldown formulas
    i want to fill down without formatting
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Cells.count > 1 Then Exit Sub
        If Intersect(Target, Range("E11:E1500")) Is Nothing Then Exit Sub
        Application.EnableEvents = False
        
        Range("A10:D10").Copy Destination:=Target.Offset(, -4)
        Range("H10:U10").Copy Destination:=Target.Offset(, 3)
        Range("Z10:AE10").Copy Destination:=Target.Offset(, 21)
        Range("AJ10:AK10").Copy Destination:=Target.Offset(, 31)
        Application.EnableEvents = True
    End Sub
    like

    Type:=xlFillValues

    thanx
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Worksheet_Change Event Want to fill down formula without formatting

    Maybe:

    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Cells.Count > 1 Then Exit Sub
        If Intersect(Target, Range("E11:E1500")) Is Nothing Then Exit Sub
        Application.EnableEvents = False
        Range("A10:D10").Copy
        Target.Offset(, -4).PasteSpecial xlPasteValues
        Range("H10:U10").Copy
        Target.Offset(, 3).PasteSpecial xlPasteValues
        Range("Z10:AE10").Copy
        Target.Offset(, 21).PasteSpecial xlPasteValues
        Range("AJ10:AK10").Copy
        Target.Offset(, 31).PasteSpecial xlPasteValues
        Application.EnableEvents = True
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I use the worksheet_change event?
    By JohnJK04 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2015, 07:51 PM
  2. Worksheet_Change event
    By serge.pigeot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2012, 03:20 AM
  3. Worksheet_Change Event won't run more than once
    By David McMillon in forum Excel General
    Replies: 2
    Last Post: 07-08-2010, 04:02 PM
  4. Using Worksheet_Change Event
    By John99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2009, 08:26 AM
  5. Worksheet_Change Event
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2009, 04:45 AM
  6. [SOLVED] Worksheet_Change Event
    By safflenow in forum Excel General
    Replies: 1
    Last Post: 06-27-2005, 01:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1