Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone tell me what the problem is with the following code?
Period = InputBox("Input invoice period, e.g. AUG-07", "Period") Sheets("ANNUAL MASTER").Select Range("D7").Select ActiveCell.FormulaR1C1 = "=Spreadsheet!R[-5]C[-3] &"" """ & Period When I run this in a Macro, I get a VB "Run-time error '1004': Application-defined or object-defined error". It doesn't seem to like the "& Period" portion at the end of the last line. If I take that piece out, it works fine. The code seems to conform to the syntax that I have seen in many other places, so I'm stumped. Any help would be greatly appreciated! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help needed with Inputbox problem | Excel Programming | |||
Help needed with Inputbox problem | Excel Programming | |||
Inputbox/Regression Problem | Excel Programming | |||
Inputbox/Regression Problem | Excel Programming | |||
Inputbox for Worksheet name - problem | Excel Programming |