SkyWalker1012
New Member
- Joined
- Apr 10, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
I am trying load Picking Sheets with data from another sheet. I cannot workout the syntax to access the data. Receiving Compile error - Syntax.
how do I access the other sheet?
Sub Macro4()
'
' Macro4 Macro
'
'
Dim OrderCount As Integer
For OrderCount = 0 To 600
ActiveCell.Offset(0, 1).Range("A1:A2").Select
ActiveCell.FormulaR1C1 = "='pie drive numbers'!RC[-"&OrderCount*2&"]"
ActiveCell.Offset(2, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "='pie drive numbers'!RC[-"OrderCount*2"]"
ActiveCell.Select
Selection.AutoFill Destination:=ActiveCell.Range("A1:A23"), Type:= _
xlFillDefault
ActiveCell.Range("A1:A23").Select
ActiveCell.Offset(-2, 2).Range("A1").Select
Next OrderCount
End Sub
how do I access the other sheet?
Sub Macro4()
'
' Macro4 Macro
'
'
Dim OrderCount As Integer
For OrderCount = 0 To 600
ActiveCell.Offset(0, 1).Range("A1:A2").Select
ActiveCell.FormulaR1C1 = "='pie drive numbers'!RC[-"&OrderCount*2&"]"
ActiveCell.Offset(2, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "='pie drive numbers'!RC[-"OrderCount*2"]"
ActiveCell.Select
Selection.AutoFill Destination:=ActiveCell.Range("A1:A23"), Type:= _
xlFillDefault
ActiveCell.Range("A1:A23").Select
ActiveCell.Offset(-2, 2).Range("A1").Select
Next OrderCount
End Sub