I'm trying to set a range to a value using the Cells property, but keep getting a "Run-time error '1004': Application-defined or object-defined error" at the Set OrderRange line.
I've tried simplifying it to just numbers instead of a variable in the Cells arguments but it still does the same. Replacing the Cells property and using a direct cell reference (i.e. A8 etc.) works fine.![]()
Please Login or Register to view this content.
This is in a module created by right-clicking VBAPRoject (Workbookname)>Insert>Module in the project explorer.
Bookmarks