I am creating a workbook using VBA in MS Access, populating the workbook with data from Access.
I have created a bunch of columns which I am setting hidden as default for the user to unhide if required. All works fine.
I want to make it easier for the user by creating a buton on the worksheet which unhides and rehides the columns rather than depending on them using the Excel skills they may lack.
I have the button and code behind it working as I want on a test workbook.
How can I get VBA code inside Access to create this as it creates the workbook. I can see how to create the button itself, it is getting the code behind it into the workbook that has me puzzled.
I have created a bunch of columns which I am setting hidden as default for the user to unhide if required. All works fine.
I want to make it easier for the user by creating a buton on the worksheet which unhides and rehides the columns rather than depending on them using the Excel skills they may lack.
I have the button and code behind it working as I want on a test workbook.
How can I get VBA code inside Access to create this as it creates the workbook. I can see how to create the button itself, it is getting the code behind it into the workbook that has me puzzled.