怎么在excel窗体中绘制房子?今天小编就来跟大家分享一下在excel窗体中绘制房子的教程,大家可以去看一看哦。
在excel窗体上绘制一座房子的步骤
打开excel表格,进入vbe窗口。

插入模块。

在模块1内编程,声明4个函数、1个结构,并编写一句显示窗体的程序——“画”。

插入窗体。

这是插入的窗体。

双击窗体进入编程界面,编写窗体单击事件触发的程序,调用模块1里声明的1个结构编写程序。这是房顶和房子的前面各4个点的坐标,房子的侧面5点的坐标。

这是门和窗各4个点的坐标。

调用模块1里声明的4个函数编写画房子的程序。

关闭vbe窗口,在excel表格界面启动宏。

执行宏——“画”。

在表格上出现窗体,这就是“画”这个程序的运行结果。

单击窗体,出现一座房子,这就是窗体单击事件程序的运行结果。

以上就是怎么在excel窗体中绘制房子的全部内容了,大家都学会了吗?