The attached work book shows a table and the code I am using to format the table by putting in borders and colouring total rows yellow etc.
This code worked fine while I was running the sub routines individually as I was building the application. When I wrote code so the whole lot could be fired off by a button I started to get errors at the line labelled 100 in the Horizontals sub routine. The error was that the select method of Range failed. When I deconstructed the button code the problem persisted.
The Range, which is dynamic, is named in the Define Range tool, but I have not done that in the attachment.
I have eliminated the obvious things such as typos or the range having no values and I am now at a loss as to how to proceed. Can any one help please
John
Bookmarks