ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   make VbA invisible (https://www.excelbanter.com/excel-programming/387178-make-vba-invisible.html)

newbie in hell

make VbA invisible
 
Hi:

When I try to open a workbook by using automation, VBA Console gets open too.

I don't want the user to see vba code written on ThisWorkbook module.

What should I do?

Thank you.

Rick.

Norman Jones

make VbA invisible
 
Hi Rick,

Try:

Application.VBE.MainWindow.Visible = False


---
Regards,
Norman


"newbie in hell" wrote in message
...
Hi:

When I try to open a workbook by using automation, VBA Console gets open
too.

I don't want the user to see vba code written on ThisWorkbook module.

What should I do?

Thank you.

Rick.




Mike

make VbA invisible
 
Not really sure what you are meaning

"newbie in hell" wrote:

Hi:

When I try to open a workbook by using automation, VBA Console gets open too.

I don't want the user to see vba code written on ThisWorkbook module.

What should I do?

Thank you.

Rick.


newbie in hell

make VbA invisible
 
Thank you Norman. I works fine.
Just a word to the others:

You should use
Application.VBE.MainWindow.Visible = False

AFTER any code that uses VBProject in Excel.

bye.

Rick.

"Norman Jones" wrote:

Hi Rick,

Try:

Application.VBE.MainWindow.Visible = False


---
Regards,
Norman


"newbie in hell" wrote in message
...
Hi:

When I try to open a workbook by using automation, VBA Console gets open
too.

I don't want the user to see vba code written on ThisWorkbook module.

What should I do?

Thank you.

Rick.






All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com