1. Trang chủ
  2. » Công Nghệ Thông Tin

Office VBA Macros You Can Use Today phần 1 docx

46 363 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 46
Dung lượng 8,24 MB

Nội dung

[...]... on the bookstore shelves that address VBA for one particular Office app or another – my goal with this book is that you can comfortably write useful macros in all of your Office apps Bill Jelen co-author of VBA & Macros for Microsoft Excel Office VBA: Macros You Can Use Today page a Foreword This page intentionally left blank page b Office VBA: Macros You Can Use Today About the Authors and Contributors... for you with the click of a button If you run and print the same three mail merges every day, then this task can be reduced to a button-click that runs a macro to do it for you Take Advantage of UserForms VBA can provide UserForms If you have ever used a wizard in a software application, then you have used a UserForm If you have ever entered data into pre-defined boxes, then you have used a UserForm UserForms... the procedures contained herein use a function to perform their task Enjoy Security Have you ever wanted to keep your users from seeing that data on your payroll worksheet? Have you ever wanted to ensure that they can add only certain information to that contract document? If so, then VBA is for you page 2 Office VBA: Macros You Can Use Today How to Use This Book How to Use This Book This book is not... and Tony Jollans page f Office VBA: Macros You Can Use Today Introduction Introduction We have created a basic book for users of all of the Office applications, rather than focusing on any one application or going into great detail This is not a manual to teach you Visual Basic for Applications (VBA) ; it is an introduction to show you what VBA can do for you It provides over 10 0 programming examples... Locals window These windows are used in specific instances, and are not necessary to operate the macros in this book Office VBA: Macros You Can Use Today page 17 Introducing the Visual Basic Editor P r o t e c t i n g Y o u r P ro j e c t s Int You can protect a VBA project so the user cannot show the worksheets directly from the Visual Basic Editor To do so, go to Tools | VBA Project Properties… The dialog... UserForms enable us to provide an easy user interface, to restrict entry of data to valid values, and to allow the application to work behind the scenes Office VBA: Macros You Can Use Today page 1 Int Introduction Develop User-defined Functions Int When the function you need to perform isn’t built-in, VBA provides a method to create any function you need These are called user-defined functions, or UDFs Many... password to be used Note: Be sure to write the password down so you don’t forget it! Figure 11 – The Project Protection Screen page 18 Office VBA: Macros You Can Use Today Excel Procedures Excel Procedures By Juan Pablo González Printing All Files Use this procedure to print all the available workbooks within a directory without having to open and print each one separately Scenario: This macro is useful when... has long frustrated those trying to learn how to use VBA with PowerPoint Office VBA: Macros You Can Use Today page 13 Int Introducing the Visual Basic Editor Wo r k i ng with M od u les Int VBA has several places in which to store code, but the vast majority of code is stored in Standard modules, regardless of the application Before a module can be used, it must first be added to the project From the... it can be shown by any of following methods: 1 Select View | Properties Window from the VBE Toolbar Office VBA: Macros You Can Use Today page 15 Introducing the Visual Basic Editor 2 Click the Properties Window button on the VBE Toolbar 3 Use the shortcut key, F4 Int Change the name of the module by typing the desired name into the Name field The name must start with a letter, cannot be more than 31. .. this option Tip: For those interested, more detail and online VBA Training can be found online at www.VBAExpress.com, as well as other websites Office VBA: Macros You Can Use Today page 11 Int Introducing the Visual Basic Editor Using Project Explorer Int To navigate within the various elements in the programming environment, there is one very useful window: the Project Explorer By default, it is located . Tables 11 6 Table of Contents Office VBA: Macros You Can Use Today page iii Word Procedures 11 9 Applying Your Favorite Bullet/Number Format 11 9 Finding and Replacing in Multiple Documents 12 2. a Macro Using Shortcut Keys 419 Index 4 21 Table of Contents page vi Office VBA: Macros You Can Use Today Foreword Office VBA: Macros You Can Use Today page a Foreword A simple macro language.

Ngày đăng: 14/08/2014, 09:21

TỪ KHÓA LIÊN QUAN

w