tigerbob
Civil/Environmental
- Dec 12, 2001
- 8
I'm trying to develop a couple of spreadsheet templates for our sales team. I'm trying to set up a few simple steps that would allow a salesmen to type in his information in one worksheet of a workbook, click a command button that has a macro to copy the enterred information into another sheet of the workbook. The code works in any version of Excel later than 97 SR-2. My computer is still running 97, and even if I use the exact code in the example from the Visual Basic Help menu (Code shown below), I get an error message (Shown below also). Does anyone have any ideas?
Entered Code:
Error Message:
Run-time error '1004':
Copy method of Range class failed
Entered Code:
Code:
Worksheets("Sheet1").Range("A1:D4").Copy _
destination:=Worksheets("Sheet2").Range("E5")
Error Message:
Run-time error '1004':
Copy method of Range class failed