I have a file from which I produce a slimmer version for wider distribution. I have the process doing everything I want with 2 exceptions, I would appreciate any help/advice that anyone can offer on the following:
- I have built a custom toolbar that is intended for use in the main file alone by anyone who uses it, to accomplish this aim I have attached the toolbar to the file and delete the toolbar form the application whenever the file is closed. However, Application.CommandBars(x).Delete does not unattach the file from the child workbook. I have also tried ThisWorkbook.CommandBars(x).Delete but all this does is generate a run-tim error 91 that I haven’t been able to resolve by following the help files.
- When I save the child file I want to ensure it is saved to the same location as the main file. However, I need to be able to accommodate both network paths and mapped drives.
Any help will be gratefully received,