G
Guest
hello...When writing a VBA macro in Excel what is the difference in using for example Private Sub test1() versus Sub Test1()?
what does the word "Private" mean in the macro name?
I have 2 macros in a worksheet, one is labeled Private Sub the other is not. When I email the worksheet to another and they open it the macro that is NOT using the "Private" wordage sometimes dosent work, depending on the persons PC.
For example..On one PC when they went to run the macro they got a DLL error. On some other PC's I got the Debug window when I went to run the macro. Most of the time I have to re-associate the macro button (right click) and reasign the macro again to the macro button that is on the worksheet.
Does this have anything to do with the macro not labeled as "Private Sub"?
Thank you
He4Giv
what does the word "Private" mean in the macro name?
I have 2 macros in a worksheet, one is labeled Private Sub the other is not. When I email the worksheet to another and they open it the macro that is NOT using the "Private" wordage sometimes dosent work, depending on the persons PC.
For example..On one PC when they went to run the macro they got a DLL error. On some other PC's I got the Debug window when I went to run the macro. Most of the time I have to re-associate the macro button (right click) and reasign the macro again to the macro button that is on the worksheet.
Does this have anything to do with the macro not labeled as "Private Sub"?
Thank you
He4Giv