ChuckDrago
Active Member
- Joined
- Sep 7, 2007
- Messages
- 470
- Office Version
- 2010
- Platform
- Windows
Hi everyone,
I need help on a syntax question. I am passing information between two workbooks. The fields in question are all values except one that contains a formula. The formula displays the resulting value and that number is what I need to pass. The code below shows the copy/destination method used and the field with a formula is the one passing the Order Qty (Range "Wm" to Range("Hz"). As usual, thanks in advance for your always valuable assistance.
Chuck
I need help on a syntax question. I am passing information between two workbooks. The fields in question are all values except one that contains a formula. The formula displays the resulting value and that number is what I need to pass. The code below shows the copy/destination method used and the field with a formula is the one passing the Order Qty (Range "Wm" to Range("Hz"). As usual, thanks in advance for your always valuable assistance.
Chuck
Code:
Sheets("Kanban Data").Range("C" & m).Copy Destination:=Sheets("Transfer").Range("A" & z) 'Part Id
Sheets("Kanban Data").Range("C" & m).Copy Destination:=Sheets("Transfer").Range("P" & z) 'Aux Part ID
Sheets("Kanban Data").Range("D" & m).Copy Destination:=Sheets("Transfer").Range("B" & z) 'Descr
Sheets("Kanban Data").Range("E" & m).Copy Destination:=Sheets("Transfer").Range("C" & z) 'W/House
Sheets("Kanban Data").Range("F" & m).Copy Destination:=Sheets("Transfer").Range("D" & z) 'Location
Sheets("Kanban Data").Range("G" & m).Copy Destination:=Sheets("Transfer").Range("E" & z) 'M/B/T
Sheets("Kanban Data").Range("K" & m).Copy Destination:=Sheets("Transfer").Range("F" & z) 'Leadtime
Sheets("Kanban Data").Range("W" & m).Copy Destination:=Sheets("Transfer").Range("H" & z) 'OrderQty <<<<< Affected line
Sheets("Kanban Data").Range("Q" & m).Copy Destination:=Sheets("Transfer").Range("I" & z) 'Containment
Sheets("Kanban Data").Range("H" & m).Copy Destination:=Sheets("Transfer").Range("J" & z) 'Buyer Init
Sheets("Kanban Data").Range("B" & m).Copy Destination:=Sheets("Transfer").Range("L" & z) 'Total Cards