Page 1 of 1
การเขียนโค๊ด VBA
Posted: Sat Apr 07, 2012 8:54 pm
by sutham
อยากทราบการเขียนโค๊ด VBA ที่ให้ excel ที่มีการใช้แมโคร ซ่อนแถบเมนู และทูลบาร์
Re: การเขียนโค๊ด VBA
Posted: Sat Apr 07, 2012 9:04 pm
by snasui
Re: การเขียนโค๊ด VBA
Posted: Sat Apr 07, 2012 9:35 pm
by sutham
ต้องขอโทษด้วยครับ ผมเข้าไปดูแล้วไม่ใช่ลักษณะที่ต้องการครับ
Re: การเขียนโค๊ด VBA
Posted: Sat Apr 07, 2012 9:39 pm
by tupthai
Re: การเขียนโค๊ด VBA
Posted: Sat Apr 07, 2012 9:48 pm
by sutham
ผมลองแนบสิ่งที่ต้องการมาให้ดู
ใครช่วยแนะนำได้ ยินดีครับ
Re: การเขียนโค๊ด VBA
Posted: Sat Apr 07, 2012 10:04 pm
by snasui

ลองใช้ Code นี้ใน Event Workbook_Open ดูครับ
Code: Select all
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
และใช้ Code นี้ใน Event Workbook_BeforeClose
Code: Select all
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"
Re: การเขียนโค๊ด VBA
Posted: Mon Jun 01, 2015 9:34 am
by sutham
ขอบคุณครับ สำเร็จแล้วครับ