Newby here. Please be gentle! When I run my excel macro and keep the cursor in the workbook that the macro is running in, the macro is able to set the cursor position to where I need it. I use:
Workbooks("TwsDdeNick_prod.xlsm").Worksheets("BasicOrders").Range("A10").Activate
Now, when I run this macro and then move the cursor to another workbook before the macro is finished I get the following message when the macro is attempting to move the cursor in the workbook where the macro was run:
Run-time error ‘1004’:
Activate method of Range class failed
How can I be able to move my cursor freely between workbooks but have the macro operate independently of what workbook I’m currently in? Thanks so much in advance.
Workbooks("TwsDdeNick_prod.xlsm").Worksheets("BasicOrders").Range("A10").Activate
Now, when I run this macro and then move the cursor to another workbook before the macro is finished I get the following message when the macro is attempting to move the cursor in the workbook where the macro was run:
Run-time error ‘1004’:
Activate method of Range class failed
How can I be able to move my cursor freely between workbooks but have the macro operate independently of what workbook I’m currently in? Thanks so much in advance.