Hi
Please could you help, I'm getting an "object required error" on this following code:
Would appreciate any guidance. Thank you
Please could you help, I'm getting an "object required error" on this following code:
Would appreciate any guidance. Thank you
Code:
Sub PopulateColumns()
Dim ws As Worksheet
Dim inputmonth As String
inputmonth = InputBox("Enter CRA Reporting Month")
For Each ws In ActiveWorkbook.Sheets
ws.Activate
ws.Range("k6") = "BIM Area"
ws.Range("K7:k14") = Application.WorksheetFunction.VLookup(ActiveSheet.Name, Lookup.Range("a$1$:B$200$"), 2, 0)
ws.Range("L6") = "Date"
ws.Range("l7:l14") = inputmonth
Next ws
End Sub