Solved What am I missing ??

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

snoozee

Thread Starter
It's My Birthday!
Joined
Apr 10, 2006
Messages
264
Hi

I can't work out what's wrong with my code below :-(

I think it might have something to do with the fact that the users data input doesn't start until row 16 as above this is a header row (row 15) and from row 1 -14 is a dashboard working off the data input.

I'm trying to copy and paste the data input into columns A-C into a new worksheet if column U contains "Y".

I've been playing with this for ages and can't work out how to fix it so any help would be greatly appreciated :)

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Column = 21 Then
Application.ScreenUpdating = False
If Target.Value = "Y" Then
Sheets("Dec18").Range("A" & Target.Row & ":C" & Target.Row).Copy
myRow = Sheets("ActiveCustomers").UsedRange.Row + 1
Sheets("ActiveCustomers").Range("A" & myRow & ":C" & myRow).Select
Sheets("ActiveCustomers").Paste
Target.Select
End If

Application.ScreenUpdating = True
End If
End Sub
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top