Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Book on VBA/Excel/Macros 2

Status
Not open for further replies.

misuser

MIS
Sep 16, 2003
22
EU
I am in desperate need of some advice please?

I am trying to delve into using VBA primarily with excel, also envloving the need to develop some macros for the first time. Can anyone recommend a really good book for first time VBA/Excel/Macro development.

I am experienced in SQL programming so am not a novice to programming languages or using Excel but have not programmed in VBA or developed macros before.

Thanks in advance!

Tom
 
John Walkenbach's Power Programming With VBA is about the best I've seen. The Microsoft Press Step-By-Step Excel Development book isn't too bad.

Graeme
 
thanks. does it cover using macros with the vba coding it goes over?

tom
 
Covers everything you could possibly want to know, I think, and mucmore besides! Also have a look at his website:

Also bear in mind there are a great many resources on the web where you can learn for free.....

Graeme
 
Thanks for your help guys -

one last thing - does John Walkenbach's Power Programming With VBA start from the beginning in terms of using vba/macros with excel? i ve not done this type of dev work b4..!

thanks
tom
 
It assumes some familiarity with excel, but other than that you should have no problems. Have you tried recording some simple macros yourself and examining the code that's generated?
 
Yes it starts from the beginning and will walk you through an introductory overview, then through the object model etc. The following is the TOC lifted straight from Amazon

Table of Contents

PART I: Some Essential Background.

Chapter 1: Excel 2002: Where It Came From.
Chapter 2: Excel in a Nutshell.
Chapter 3: Formula Tricks and Techniques.
Chapter 4: Understanding Excel's Files.

PART II: Excel Application Development.

Chapter 5: What is a Spreadsheet Application?
Chapter 6: Essentials of Spreadsheet Application Development.

PART III: Understanding Visual Basic for Applications.

Chapter 7: Introducing Visual Basic for Applications.
Chapter 8: VBA Programming Fundamentals.
Chapter 9: Working with VBA Sub Procedures.
Chapter 10: Creating Function Procedures.
Chapter 11: VBA Programming Examples and Techniques.

PART IV: Working with UserForms.

Chapter 12: Custom Dialog Box Alternatives.
Chapter 13: Introducing UserForms.
Chapter 14: UserForm Examples.
Chapter 15: Advanced UserForm Techniques.

PART V: Advanced Programming Techniques.

Chapter 16: Developing Excel Utilities with VBA.
Chapter 17: Working with Pivot Tables.
Chapter 18: Working with Charts.
Chapter 19: Understanding Excel's Events.
Chapter 20: Interacting with Other Applications.
Chapter 21: Creating and Using Add-Ins.

PART VI: Developing Applications.

Chapter 22: Creating Custom Toolbars.
Chapter 23: Creating Custom Menus.
Chapter 24: Providing Help for Your Applications.
Chapter 25: Developing User-Oriented Applications.

PART VII: Other Topics.

Chapter 26: Compatibility Issues.
Chapter 27: Manipulating Files with VBA.
Chapter 28: Manipulating Visual Basic Components.
Chapter 29: Understanding Class Modules.
Chapter 30: Frequently Asked Questions about Excel Programming.

Appendix A: Excel Resources Online.
Appendix B: VBA Statements and Functions Reference.
Appendix C: VBA Error Codes.
Appendix D: ANSI Code Reference.
Appendix E: What's on the CD-ROM.

Index.

Regards
Ken..............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
thanks for that - looks pretty good indeed.

are macros covered in this bit - PART VI: Developing Applications. ??

it doesnt seem to mention macros specifically in the topics?

Tom
 
The word MACRO is really a misnomer that today, in the Excel world, is a VBA Subroutine or Procedure.

A MACRO was a series of keystroke commands that could be run automatically.

VBA Procedures are much more flexible and can do MUCH more than MACROS were ever capable of doing.

:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
misuser, another way to learn VBA in Excel is to play with the macro recorder:
Tools -> Macro -> New macro
This will create the VBA code related to what you do within the workbook.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top