Simple Software Solutions
Fair enough, What events and actions will this button be generating? The reason why I am asking is that how will it know how many rows/cols to process? Another suggestion is to create the code in the users personal.xls and have a menu item instead of a button to generate the code. For example I have spreadsheets coming in to me everyday from an external source. The format is aways the same it just the row count that changes. I have to import this data in access. I created forms and modules in Excel and added custom menu items that runs the code to vaidate the worksheet contents and append to Access. By placing this in the Excel Personal.xls you can access this code anytime you open a workbook.
David