Hi all:
I have this code:
Sub transpose_UPCID()
Dim rng1 As Range
Dim rng2 As Range
Set rng1 = Sheets("Sales-Inventory").Range("UPC", Range("MK_ID").End(xlDown))
Set rng2 = Sheets("Sales-Inventory").Range("Figure", Range("Figure").End(xlDown))
rng1.Copy
Sheets("BAUCS").Range("C11").PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:=False _
, Transpose:=True
rng2.Copy
Sheets("BAUCS").Range("C37").PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = True
End Sub
This code copy a whole range and paste it into another worsheet. I need help to change this code to do the following. Let me explain.
I added a column in the Sales-Inventory called Type. This column has a data validation with six options. Like this: WE,DY,SD,IU,HJ,BH. I also have a worksheet for each one of this "types". I need the code to look into the Type column and copy the values to correspondent worsheet.
All products with a WE type, copy to WE worksheet and so on. Currently the code copy a whole range to one worsheet.
Did I explain myself correctly? Can anybody help me with that? Please
Thanks
I have this code:
Sub transpose_UPCID()
Dim rng1 As Range
Dim rng2 As Range
Set rng1 = Sheets("Sales-Inventory").Range("UPC", Range("MK_ID").End(xlDown))
Set rng2 = Sheets("Sales-Inventory").Range("Figure", Range("Figure").End(xlDown))
rng1.Copy
Sheets("BAUCS").Range("C11").PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:=False _
, Transpose:=True
rng2.Copy
Sheets("BAUCS").Range("C37").PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:=False _
, Transpose:=True
Application.CutCopyMode = True
End Sub
This code copy a whole range and paste it into another worsheet. I need help to change this code to do the following. Let me explain.
I added a column in the Sales-Inventory called Type. This column has a data validation with six options. Like this: WE,DY,SD,IU,HJ,BH. I also have a worksheet for each one of this "types". I need the code to look into the Type column and copy the values to correspondent worsheet.
All products with a WE type, copy to WE worksheet and so on. Currently the code copy a whole range to one worsheet.
Did I explain myself correctly? Can anybody help me with that? Please
Thanks