Hello all,
How can I copy contents in a ROW from sheet 1 to sheet 2 simply based on TEXT written on one of the cells in Sheet 1??? "The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If ActiveSheet.Name = ("Sheet2" Then
GoTo endprivate
End If
omgman
endprivate:
End Sub
ADD A MODULE TO SHEET1 AND PUT THIS IN IT:
Sub omgman()
If Not ActiveSheet.Name = ("Sheet1" Then
GoTo endo
End If
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
On Error GoTo endo
a = ActiveCell.Offset(-1, 0).Value
On Error GoTo endo
aADDY = ActiveCell.Offset(-1, 0).Address
If a = "good" Then
Range(aADDY).EntireRow.Copy
Sheets("Sheet2".Activate
[A2].Select
ActiveSheet.Paste
Sheets("Sheet1".Activate
Range(aADDY).Select
End If
endo:
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
-----------------------
when you enter the word "good" in any cell on sheet1 it will paste it into sheet2
There are many different and BETTER ways to more accuratly and dynamicly accomplish this so if you really want them email me all your info and I'll upgrade it.
Thanks for the feedback ratman. I will try it and let you know. thanks "The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>
ratman, it is not working.
Can I email you a copy of my workbook to better show you what I'm trying to do?? I would appreciate your help. "The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.