I have an Excel file with a number of connections which can be refreshed. I am trying to build the following macro to a) refresh all connections throughout the workbook, b) add a value to two specific cells on one worksheet, then c) add two formulas which should be applied as far as the last row of data (once the connections have been refreshed):
This returns an error as follows:![]()
Please Login or Register to view this content.
ErrorMessage.PNG
If I choose 'End', the connections continue to refresh and the values are inserted into cells N1 and O1 but the formulas are not added.
Any ideas? I'm pretty new to VBA so apologies if I've made some very basic errors!
Bookmarks