Thread
:
Wanting to move single lines to second worksheet
View Single Post
#
7
Posted to microsoft.public.excel.misc
Muddled
external usenet poster
Posts: 21
Wanting to move single lines to second worksheet
Sorry,
OK
DG
"Don Guillett" wrote:
You are doing what is called "Hijacking". Start your OWN thread with a
suitable subject line and before/after examples of what you want.
--
Don Guillett
SalesAid Software
"Muddled" wrote in message
...
CP--- I Can't help you, but maybe you can help me. I want to move the
quote
number & name( 2 cells) on my "Quotes" Tab, to the Job number & Name Slots
on
my "Jobs" Tab.I have been able to move the data from one sheet to the
next,
however don't know how to make the quotes appear in the next available Job
#
column. Any insight??
DC
-
"CP" wrote:
Ok found alot of coding - but doesnt make any sense
Sub MoveRow()
Dim wsOrder As Worksheet
Dim wsData As Worksheet
Dim r As Long
Set wsOrder = Worksheets("OrderForm")
Set wsData = Worksheets("Data Entry")
r = wsOrder.Cells(Rows.Count, 1).End(xlUp).Row + 1
ActiveCell.EntireRow.Copy Destination:=wsOrder.Cells(r, 1)
End Sub
----
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 3 And Target.Column = 3 Then
'calculate criteria cell in case calculation mode is manual
Worksheets("ProductsList").Range("I3").Calculate
Worksheets("ProductsList").Range("Database") _
.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("ProductsList").Range("I2:I3 "), _
CopyToRange:=Range("A6:G6"), Unique:=False
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 7 And Target.Row 6 Then
If Cells(Target.Row, 1).Value < "" Then
Target.Value = "X"
MoveRow
'MsgBox "Row has been copied"
End If
End If
End Sub
Reply With Quote
Muddled
View Public Profile
Find all posts by Muddled