KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I defined the following subroutine: Sub EnterCellValueMonthNumber(cells As range, number As Integer) range(cells).Select ActiveCell.FormulaR1C1 = number End Sub When I call the subroutine like this: EnterCellValueMonthNumber ("N23:Q23",1) I get the following error message: Compile error Expected: = I have no idea why I get this message. Does anyone know what I am missing?
Tags (comma-separated)
Save Edits
Cancel