vba操作代码大全(VBA即用型代码手册之)

分享成果,随喜正能量】执念,于人于己都是负担,唯有放下,我们才能在短暂而美好的人生中轻装、远行。 。

我给VBA下的定义:VBA是个人小型自动化处理的有效工具。可以大大提高自己的劳动效率,而且可以提高数据的准确性。我这里专注VBA,将我多年的经验汇集在VBA系列九套教程中。

作为我的学员要利用我的积木编程思想,积木编程最重要的是积木如何搭建及拥有积木。在九套教程中我给出了大量的积木,同时讲解了如何搭建。为了让学员拥有更多的积木,我开始着手这部《VBA即用型代码手册(汉英)》的创作这部手册约600页,集合约500多个的案例,案例我用汉语和英语同时发布,一方面学员从中可以更好的领会和掌握VBA中用到的一些英语知识,另一方面,大家可以看到各种各样的积木。这部手册是大家学习和工作中的不可多得的实用资料。今日的内容是:VBA即用型代码手册之“前言”

vba操作代码大全(VBA即用型代码手册之)(1)

前 言

什么是VBA?VBA是Visual Basic for Applications的简称。就像你我用一种共同语言交流一样,计算机程序也有自己的语言,Excel使用的语言就是VBA。同时,VBA也是MS Word,PowerPoint,及其他MS Office应用程序的语言。学习新语言往往让我们非常害怕,但对于VBA你不用担心,它比法语,西班牙语,德语或中文更容易学习。VBA易于学习的主要原因是因为它几乎看起来更像普通的英语。例如:MsgBox "hello",这是向你问好。

就像任何语言一样,VBA也有自己的规则,语法结构和与其他语言的细微差别。但一旦你理解了这些,当你用VBA对话Excel时,就像和你的朋友一边喝酒一边聊天一样容易。

什么是宏?如果说VBA是Excel所讲(和理解)的语言,那么宏就像一个段落。换句话说,宏是提供给 Excel 的一组指令,用于完成某些操作。

《VBA即用型代码手册(汉英)》(下面称为《手册》)是我在各套VBA教程完成后提供给学员的一部“积木手册”,《手册》约600页汇集了500多个实用型VBA应用案例,这些案例覆盖面广,与实际工作的衔接度高,可以拿来即用。什么是积木编程?将能单独解决一个或者几个小问题的单元作为积木原型,面临新的问题时,摆放若干个积木在合适的位置上,从而形成新的代码方案。这就是积木编程思想。在现代的企业中,模块化生产是非常流行的,一个工厂或者一个工位只负责一个工序的生产,可以避免很多的质量事故,同时也是提高生产效率的有效手段。这种思想也是我们写代码过程所借鉴的。我提供的各套教程提供了大量的积木原型,这部手册丰富和完善了教程积木,可以让大家从不同的角度,以不同的思路解决问题。

《手册》共三十四章,每章分为若干小节,每节就是一个小积木。内容涉及到代码的调试及优化;工作簿及工作表代码;WORD代码示例;代码的简单过程和典型过程;日期和时间处理;单元格及工作表的格式化处理;用户与程序及程序间的交互;FSO对文件和文件的处理;打印、颜色、筛选、排序、信息验证、随机数、条件判断的代码;字符串的处理;工具栏、功能区及网抓的代码;同时还给出了对表和代码执行的应用等等。希望大家能根据我给出的积木代码进行修正后重新组织形成新的实际问题解决方案。

What is VBA?VBA stands for Visual Basic for Applications. Just like you and I have a language, computer programs too have their own language. VBA happens to be the language in which Excel speaks. For that matter, VBA is also the language of MS Word, PowerPoint, Access and other MS Office applications. The prospect of learning new languages scares us a lot. But worry not, VBA is much easier to learn than French, Spanish, German or Chinese. The main reason why VBA is easy to learn is because it almost looks like plain English. For example MsgBox "hello" says hello to you: Just like any language.

VBA too has its own rules, grammatical structures & nuances. Once you understand these, speaking VBA with Excel becomes as easy as chatting with your friend over a drink.

What is a Macro?While VBA is the language which Excel speaks (and understands), Macro is like a paragraph. In other words, a Macro is a set of instructions given to Excel to accomplish something.

VBA Ready-to-Use Macros (Chinese-English)》 (hereinafter referred to as the "Manual") is a "building block manual" that I provide to the students after the completion of each set of VBA tutorials. The Manual contains about 600 pages of more than 500 practical VBA application cases. These cases cover a wide range of areas and have a high degree of connection with the actual work. They can be used immediately. What is block programming? Use the unit that can solve one or several small problems independently as the building block prototype. When facing new problems, put several building blocks in the appropriate position to form a new code scheme. This is the idea of building block programming. In modern enterprises, modular production is very popular. A factory or a station is only responsible for the production of one process, which can avoid many quality accidents, and is also an effective means to improve production efficiency. This idea is also used for reference in our code writing process. Each set of tutorials provided by me provides a large number of building block prototypes. This manual enriches and perfects the building blocks of the tutorial, which can help you solve problems from different perspectives and with different ideas.

The Manual consists of 34 chapters, each of which is divided into several sections. Each section is a small building block. The content involves code debugging and optimization; Workbook and worksheet code; Example of WORD code; Simple process and typical process of code; Date and time processing; Format cells and worksheets; Interaction between users and programs; FSO's handling of documents and documents; Codes for printing, color, filtering, sorting, information verification, random number, and condition judgment; String processing; Code of toolbar, function area and web grab; At the same time, the application of table and code execution is also given. I hope that you can reorganize and form a new practical problem solution according to the block code I gave.

vba操作代码大全(VBA即用型代码手册之)(2)

【分享成果,随喜正能量】我20多年的VBA实践经验,全部浓缩在下面的各个教程中:

vba操作代码大全(VBA即用型代码手册之)(3)

分享成果,随喜正能量】君子之心常存敬畏,虽不见闻,亦不敢忽。敬畏是发自内心的修养,无论人前还是独处,都要端心自守,控制好自心,管理好自己的行为。。

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页