一、打开 控件工具箱
office 2003-2007:视图——》工具栏——》控件工具箱
office 2010:文件——》选项——》自定义功能区——》勾选右边的“开发工具”
二、单个按钮熟悉
Label、CheckBox、TextBox、CommandButton、OptionButton
详解:http://www.doc88.com/p-8989047352617.html
三、语言
VBA
四、链接数据库
示例:(执行SQL)
strSQL = " insert into Table_1(clicktimes,name) values(1,'Ybb')"
Set rs = CreateObject("ADODB.Recordset")
Set conn = CreateObject("ADODB.connection")
strCn = "Provider=SQLOLEDB.1;;Initial Catalog=ybbdemo;Password=123456;User ID=sa;Data Source=127.0.0.1;Persist Security Info=True;"
conn.Open strCn
rs.Open strSQL, conn
rs.Close
conn.Close
总结:
感觉和Delphi 的编程方式类似