Dolemitefunk
New Member
- Joined
- Oct 12, 2010
- Messages
- 47
Can someone please tell me what is wrong with my coding?
Sub Autocopy36()
Dim master As Workbook
Dim factors As Worksheet
Set master = ActiveWorkbook
Set factors = master.ActiveSheet
Set Test= Workbooks.Open("U:\Me\docs.xlsx")
Set Result= Test.Worksheets("Numbers")
Result.Range("H14").Select
ActiveCell.FormulaR1C1 = "=factors.C31"
Range("H14").Select
Selection.Copy
Range(Selection, Selection.End(xlDown)).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
End Sub
Sub Autocopy36()
Dim master As Workbook
Dim factors As Worksheet
Set master = ActiveWorkbook
Set factors = master.ActiveSheet
Set Test= Workbooks.Open("U:\Me\docs.xlsx")
Set Result= Test.Worksheets("Numbers")
Result.Range("H14").Select
ActiveCell.FormulaR1C1 = "=factors.C31"
Range("H14").Select
Selection.Copy
Range(Selection, Selection.End(xlDown)).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
End Sub