I have this code: but when I hover over Payday it shows Payday = "="08-05 TO 08-11" and the code stops.
Payday = Application.InputBox(Prompt:="What is the Pay Period?", Type:=0)
ThisWorkbook.Sheets("HOURS BY ID").Range("G2:G1500").FormulaR1C1 = _
"=IFERROR(VLOOKUP(G2," & Payday & "$C:$Q,15,0)"
Payday = Application.InputBox(Prompt:="What is the Pay Period?", Type:=0)
ThisWorkbook.Sheets("HOURS BY ID").Range("G2:G1500").FormulaR1C1 = _
"=IFERROR(VLOOKUP(G2," & Payday & "$C:$Q,15,0)"