billyheanue
Board Regular
- Joined
- Jul 13, 2015
- Messages
- 109
Code:
Sub CommandButton8_Click()
Dim vlookprint As String
Dim colindexvalyoo As Double
Dim resizevalyoo As Double
resizevalyoo = Sheet1.Cells(19, 12).Value
colindexvalyoo = Sheet1.Cells(16, 12).Value
vlookprint.Resize(resizevalyoo, 1).Formula = "=VLOOKUP(Sheet1!B16,Sheet2!" _ 'compile error on vlookprint
& Sheets("Sheet2").Range("A12").CurrentRegion.Address & ",Sheet1!G$13,FALSE)"
End Sub
The contents of the cell storing Vlookprint is: Range("W36") <-- thats literally what is stored in the cell
Can anybody help out with this!? Im a noob