Results 1 to 5 of 5

Copy down adjacent formuale using VBA (multiple columns)

Threaded View

  1. #3
    Registered User
    Join Date
    10-12-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Copy down adjacent formuale using VBA (multiple columns)

    Thanks for your help and advice.

    I ended up reordering the code in the worksheet change event and it now works...

    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim r As Long
    r = Target.Row
    Select Case Target.Column
    Case Is = 1
    Call UnprotectSheet
    Range("C" & r - 1).Copy Range("C" & r)
    Range("E" & r - 1).Copy Range("E" & r)
    Range("H" & r - 1).Copy Range("H" & r)
    Call ProtectSheet
    End Select
    End Sub


    Thanks.
    Last edited by lucasreece; 08-21-2010 at 06:16 AM.

Thread Information

Users Browsing this Thread

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

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