100% found this document useful (2 votes)
39 views

Excel 2007 VBA Programming for Dummies 1st Edition John Walkenbach - Download the ebook now for instant access to all chapters

The document promotes various eBooks available for download at ebookname.com, including titles on Excel VBA programming by John Walkenbach. It provides links to multiple editions of related books and highlights the instant availability of digital formats like PDF, ePub, and MOBI. Additionally, it includes copyright information and acknowledgments related to the publication of the 'Excel 2007 VBA Programming For Dummies' book.

Uploaded by

lahvrdrong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
39 views

Excel 2007 VBA Programming for Dummies 1st Edition John Walkenbach - Download the ebook now for instant access to all chapters

The document promotes various eBooks available for download at ebookname.com, including titles on Excel VBA programming by John Walkenbach. It provides links to multiple editions of related books and highlights the instant availability of digital formats like PDF, ePub, and MOBI. Additionally, it includes copyright information and acknowledgments related to the publication of the 'Excel 2007 VBA Programming For Dummies' book.

Uploaded by

lahvrdrong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 41

Endless Ebook, One Click Away – Start Downloading at ebookname.

com

Excel 2007 VBA Programming for Dummies 1st Edition


John Walkenbach

https://ebookname.com/product/excel-2007-vba-programming-
for-dummies-1st-edition-john-walkenbach/

OR CLICK HERE

DOWLOAD EBOOK

Browse and Get More Ebook Downloads Instantly at https://ebookname.com


Click here to visit ebookname.com and download ebook now
Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Excel VBA Programming for Dummies 3rd Edition John


Walkenbach

https://ebookname.com/product/excel-vba-programming-for-
dummies-3rd-edition-john-walkenbach/

Excel 2002 Power Programming with VBA EXCEL POWER


PROGRAMMING WITH VBA 1st Edition Walkenbach

https://ebookname.com/product/excel-2002-power-programming-with-
vba-excel-power-programming-with-vba-1st-edition-walkenbach/

Excel 2010 formulas 1st Edition John Walkenbach

https://ebookname.com/product/excel-2010-formulas-1st-edition-
john-walkenbach/

People Under Three Young Children in Day Care Second


edition Elinor Goldschmied

https://ebookname.com/product/people-under-three-young-children-
in-day-care-second-edition-elinor-goldschmied/
The Encyclopedia of Celtic Mythology and Folklore 1st
Edition Patricia Monaghan

https://ebookname.com/product/the-encyclopedia-of-celtic-
mythology-and-folklore-1st-edition-patricia-monaghan/

Japan s Household Registration System and Citizenship


Koseki Identification and Documentation 1st Edition
David Chapman (Editor)

https://ebookname.com/product/japan-s-household-registration-
system-and-citizenship-koseki-identification-and-
documentation-1st-edition-david-chapman-editor/

Hi De Ho The Life of Cab Calloway 1ST Edition Alyn


Shipton

https://ebookname.com/product/hi-de-ho-the-life-of-cab-
calloway-1st-edition-alyn-shipton/

Trustworthy Systems Through Quantitative Software


Engineering First Edition Lawrence Bernstein

https://ebookname.com/product/trustworthy-systems-through-
quantitative-software-engineering-first-edition-lawrence-
bernstein/

Ripper 1st Edition Linda Rosencrance

https://ebookname.com/product/ripper-1st-edition-linda-
rosencrance/
Interpreting Lung Function Tests A Step by Step Guide
1st Edition Bruce Thompson

https://ebookname.com/product/interpreting-lung-function-tests-a-
step-by-step-guide-1st-edition-bruce-thompson/
®
Excel 2007 VBA
Programming
FOR

DUMmIES

by John Walkenbach

Revised by Jan Karel Pieterse


Excel® 2007 VBA Programming For Dummies®
Published by
Wiley Publishing, Inc.
111 River Street
Hoboken, NJ 07030-5774
www.wiley.com
Copyright © 2007 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permit-
ted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written
permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the
Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600.
Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing,
Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at
http://www.wiley.com/go/permissions.
Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the
Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade
dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United
States and other countries, and may not be used without written permission. Microsoft and Excel are reg-
istered trademarks of Microsoft Corporation in the United States and/or other countries. All other trade-
marks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any
product or vendor mentioned in this book.

LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REP-
RESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CON-
TENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT
LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CRE-
ATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CON-
TAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE
UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR
OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A
COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE
AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION
OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FUR-
THER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFOR-
MATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE.
FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE
CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ.

For general information on our other products and services, please contact our Customer Care
Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.
For technical support, please visit www.wiley.com/techsupport.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may
not be available in electronic books.
Library of Congress Control Number: 2006939593
ISBN: 978-0-470-04674-6
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
About the Author
John Walkenbach is the author of more than 50 spreadsheet books and lives
in southern Arizona. Visit his Web site at http://j-walk.com.

Dedication
“This book is dedicated to Jim Kloss and Esther Golton — my two favorite
people in Matanuska-Susitna county. By putting their names in this book, I’m
ensured of at least one sale in Alaska.”

Author’s Acknowledgments
Thanks to all of the talented people at Wiley Publishing for making it so easy
to write these books. And special thanks to Jan Karel Pieterse for his assis-
tance with this edition.
Publisher’s Acknowledgments
We’re proud of this book; please send us your comments through our online registration form
located at www.dummies.com/register/.
Some of the people who helped bring this book to market include the following:

Acquisitions, Editorial, and Composition Services


Media Development Project Coordinator: Jennifer Theriot
Project Editor: Beth Taylor Layout and Graphics: Carl Byers, Stephanie D.
Executive Editor: Greg Croy Jumper, Barbara Moore,
Copy Editor: Beth Taylor Julie Trippetti

Technical Editor: Allen Wyatt Proofreaders: Laura Albert, John Greenough,


Techbooks
Editorial Manager: Jodi Jensen
Indexer: Techbooks
Media Development Coordinator:
Laura Atkinson
Media Project Supervisor: Laura Moss
Media Development Manager:
Laura VanWinkle
Media Development Associate Producer:
Richard Graves
Editorial Assistant: Amanda Foxworth
Sr. Editorial Assistant: Cherie Case
Cartoons: Rich Tennant
(www.the5thwave.com)

Publishing and Editorial for Technology Dummies


Richard Swadley, Vice President and Executive Group Publisher
Andy Cummings, Vice President and Publisher
Mary Bednarek, Executive Acquisitions Director
Mary C. Corder, Editorial Director
Publishing for Consumer Dummies
Diane Graves Steele, Vice President and Publisher
Joyce Pepple, Acquisitions Director
Composition Services
Gerry Fahey, Vice President of Production Services
Debbie Stailey, Director of Composition Services
Contents at a Glance
Introduction .................................................................1
Part I: Introducing VBA ................................................9
Chapter 1: What Is VBA?..................................................................................................11
Chapter 2: Jumping Right In............................................................................................21

Part II: How VBA Works with Excel..............................33


Chapter 3: Working In the Visual Basic Editor..............................................................35
Chapter 4: Introducing the Excel Object Model ...........................................................53
Chapter 5: VBA Sub and Function Procedures .............................................................67
Chapter 6: Using the Excel Macro Recorder .................................................................79

Part III: Programming Concepts...................................91


Chapter 7: Essential VBA Language Elements ..............................................................93
Chapter 8: Working with Range Objects......................................................................113
Chapter 9: Using VBA and Worksheet Functions .......................................................125
Chapter 10: Controlling Program Flow and Making Decisions .................................139
Chapter 11: Automatic Procedures and Events..........................................................157
Chapter 12: Error-Handling Techniques ......................................................................177
Chapter 13: Bug Extermination Techniques ...............................................................191
Chapter 14: VBA Programming Examples ...................................................................203

Part IV: Communicating with Your Users ....................221


Chapter 15: Simple Dialog Boxes..................................................................................223
Chapter 16: UserForm Basics........................................................................................239
Chapter 17: Using UserForm Controls .........................................................................255
Chapter 18: UserForm Techniques and Tricks ...........................................................275
Chapter 19: Accessing Your Macros Through the User Interface ............................299

Part V: Putting It All Together ...................................315


Chapter 20: Creating Worksheet Functions and Living to Tell about It...................317
Chapter 21: Creating Excel Add-Ins..............................................................................333
Part VI: The Part of Tens ...........................................345
Chapter 22: Ten VBA Questions (And Answers) ........................................................347
Chapter 23: (Almost) Ten Excel Resources.................................................................351

Index .......................................................................355
Table of Contents
Introduction ..................................................................1
Is This the Right Book?....................................................................................1
So You Want to Be a Programmer . . . ............................................................2
Why Bother? .....................................................................................................2
What I Assume about You ...............................................................................3
Obligatory Typographical Conventions Section ..........................................4
Check Your Security Settings..........................................................................4
How This Book Is Organized...........................................................................6
Part I: Introducing VBA ..........................................................................6
Part II: How VBA Works with Excel ......................................................6
Part III: Programming Concepts............................................................6
Part IV: Communicating with Your Users ............................................6
Part V: Putting It All Together...............................................................7
Part VI: The Part of Tens .......................................................................7
Marginal Icons ..................................................................................................7
Get the Sample Files.........................................................................................8
Now What? ........................................................................................................8

Part I: Introducing VBA .................................................9


Chapter 1: What Is VBA? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Okay, So What Is VBA?...................................................................................11
What Can You Do with VBA?.........................................................................12
Inserting a bunch of text ....................................................................13
Automating a task you perform frequently.......................................13
Automating repetitive operations ......................................................13
Creating a custom command ..............................................................13
Creating a custom button....................................................................14
Developing new worksheet functions................................................14
Creating complete, macro-driven applications ................................14
Creating custom add-ins for Excel .....................................................14
Advantages and Disadvantages of VBA.......................................................14
VBA advantages....................................................................................15
VBA disadvantages...............................................................................15
VBA in a Nutshell ...........................................................................................16
An Excursion into Versions...........................................................................18
viii Excel 2007 VBA Programming For Dummies

Chapter 2: Jumping Right In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21


First Things First ............................................................................................21
What You’ll Be Doing .....................................................................................22
Taking the First Steps ....................................................................................23
Recording the Macro .....................................................................................23
Testing the Macro ..........................................................................................25
Examining the Macro .....................................................................................25
Modifying the Macro......................................................................................28
Saving Workbooks that Contain Macros .....................................................29
Understanding Macro Security.....................................................................29
More about the NameAndTime Macro ........................................................31

Part II: How VBA Works with Excel ..............................33


Chapter 3: Working In the Visual Basic Editor . . . . . . . . . . . . . . . . . . . .35
What Is the Visual Basic Editor? ..................................................................35
Activating the VBE ...............................................................................35
Understanding VBE components .......................................................36
Working with the Project Explorer...............................................................38
Adding a new VBA module..................................................................39
Removing a VBA module .....................................................................39
Exporting and importing objects .......................................................40
Working with a Code Window.......................................................................40
Minimizing and maximizing windows ................................................40
Creating a module ................................................................................42
Getting VBA code into a module ........................................................42
Entering code directly .........................................................................43
Using the macro recorder ...................................................................45
Copying VBA code................................................................................47
Customizing the VBA Environment .............................................................47
Using the Editor tab .............................................................................48
Using the Editor Format tab................................................................50
Using the General tab ..........................................................................52
Using the Docking tab..........................................................................52

Chapter 4: Introducing the Excel Object Model . . . . . . . . . . . . . . . . . . .53


Excel Is an Object? .........................................................................................54
Climbing the Object Hierarchy.....................................................................54
Wrapping Your Mind around Collections....................................................56
Referring to Objects.......................................................................................56
Navigating through the hierarchy ......................................................57
Simplifying object references..............................................................58
Diving into Object Properties and Methods ...............................................59
Object properties .................................................................................59
Object methods ....................................................................................62
Object events ........................................................................................63
Table of Contents ix
Finding Out More ...........................................................................................63
Using VBA’s Help system .....................................................................63
Using the Object Browser....................................................................64

Chapter 5: VBA Sub and Function Procedures . . . . . . . . . . . . . . . . . . . .67


Subs versus Functions...................................................................................67
Looking at Sub procedures .................................................................68
Looking at Function procedures.........................................................68
Naming Subs and Functions................................................................69
Executing Sub procedures ............................................................................69
Executing the Sub procedure directly ...............................................71
Executing the procedure from the Macro dialog box ......................72
Executing a macro by using a shortcut key ......................................72
Executing the procedure from a button or shape ............................74
Executing the procedure from another procedure ..........................76
Executing Function procedures ...................................................................76
Calling the function from a Sub procedure .......................................77
Calling a function from a worksheet formula....................................77

Chapter 6: Using the Excel Macro Recorder . . . . . . . . . . . . . . . . . . . . .79


Is It Live or Is It VBA?.....................................................................................79
Recording Basics............................................................................................80
Preparing to Record.......................................................................................82
Relative or Absolute?.....................................................................................82
Recording in absolute mode ...............................................................82
Recording in relative mode .................................................................83
What Gets Recorded? ....................................................................................85
Recording Options .........................................................................................86
Macro name...........................................................................................87
Shortcut key ..........................................................................................87
Store Macro In.......................................................................................87
Description............................................................................................87
Is This Thing Efficient? ..................................................................................88

Part III: Programming Concepts ...................................91


Chapter 7: Essential VBA Language Elements . . . . . . . . . . . . . . . . . . . .93
Using Comments in Your VBA Code ............................................................93
Using Variables, Constants, and Data Types ..............................................95
Understanding variables .....................................................................95
What are VBA’s data types?.................................................................97
Declaring and scoping variables ........................................................98
Working with constants .....................................................................103
Working with strings ..........................................................................105
Working with dates.............................................................................106
x Excel 2007 VBA Programming For Dummies

Using Assignment Statements ....................................................................106


Assignment statement examples......................................................107
About that equal sign.........................................................................107
Other operators..................................................................................108
Working with Arrays ....................................................................................109
Declaring arrays .................................................................................109
Multidimensional arrays....................................................................110
Dynamic arrays...................................................................................111
Using Labels..................................................................................................111

Chapter 8: Working with Range Objects . . . . . . . . . . . . . . . . . . . . . . . .113


A Quick Review.............................................................................................113
Other Ways to Refer to a Range .................................................................114
The Cells property .............................................................................115
The Offset property ...........................................................................116
Referring to entire columns and rows .............................................116
Some Useful Range Object Properties.......................................................117
The Value property ............................................................................117
The Text property ..............................................................................118
The Count property ...........................................................................118
The Column and Row properties .....................................................118
The Address property........................................................................119
The HasFormula property .................................................................119
The Font property ..............................................................................120
The Interior property.........................................................................120
The Formula property .......................................................................121
The NumberFormat property ...........................................................121
Some Useful Range Object Methods..........................................................122
The Select method .............................................................................122
The Copy and Paste methods...........................................................123
The Clear method...............................................................................123
The Delete method.............................................................................124

Chapter 9: Using VBA and Worksheet Functions . . . . . . . . . . . . . . . .125


What Is a Function?......................................................................................125
Using Built-in VBA Functions......................................................................126
VBA function examples......................................................................126
VBA functions that do more than return a value ...........................128
Discovering VBA functions ...............................................................129
Using Worksheet Functions in VBA ...........................................................132
Worksheet function examples ..........................................................133
Entering worksheet functions...........................................................136
More about Using Worksheet Functions ...................................................136
Using Custom Functions .............................................................................137
Table of Contents xi
Chapter 10: Controlling Program Flow and Making Decisions . . . . .139
Going with the Flow, Dude ..........................................................................139
The GoTo Statement ....................................................................................140
Decisions, decisions...........................................................................141
The If-Then structure .........................................................................141
The Select Case structure .................................................................146
Knocking Your Code for a Loop .................................................................149
For-Next loops.....................................................................................150
Do-While loop .....................................................................................153
Do-Until loop .......................................................................................154
Looping through a Collection .....................................................................155

Chapter 11: Automatic Procedures and Events . . . . . . . . . . . . . . . . . .157


Preparing for the Big Event.........................................................................157
Are events useful? ..............................................................................159
Programming event-handler procedures ........................................160
Where Does the VBA Code Go? ..................................................................160
Writing an Event-Handler Procedure .........................................................161
Introductory Examples................................................................................163
The Open event for a workbook.......................................................163
The BeforeClose event for a workbook ...........................................165
The BeforeSave event for a workbook.............................................165
Examples of Activation Events ...................................................................166
Activate and deactivate events in a sheet.......................................166
Activate and deactivate events in a workbook...............................167
Workbook activation events .............................................................168
Other Worksheet-Related Events ...............................................................169
The BeforeDoubleClick event ...........................................................169
The BeforeRightClick event ..............................................................169
The Change event...............................................................................170
Events Not Associated with Objects .........................................................172
The OnTime event..............................................................................172
Keypress events..................................................................................174

Chapter 12: Error-Handling Techniques . . . . . . . . . . . . . . . . . . . . . . . . .177


Types of Errors .............................................................................................177
An Erroneous Example ................................................................................178
The macro’s not quite perfect ..........................................................179
The macro is still not perfect............................................................180
Is the macro perfect yet?...................................................................180
Giving up on perfection .....................................................................181
Handling Errors Another Way.....................................................................182
Revisiting the EnterSquareRoot procedure ...................................182
About the On Error statement ..........................................................183
xii Excel 2007 VBA Programming For Dummies

Handling Errors: The Details ......................................................................184


Resuming after an error.....................................................................184
Error handling in a nutshell ..............................................................186
Knowing when to ignore errors ........................................................186
Identifying specific errors .................................................................187
An Intentional Error .....................................................................................188

Chapter 13: Bug Extermination Techniques . . . . . . . . . . . . . . . . . . . . .191


Species of Bugs.............................................................................................191
Identifying Bugs............................................................................................192
Debugging Techniques ................................................................................193
Examining your code .........................................................................193
Using the MsgBox function ...............................................................194
Inserting Debug.Print statements ....................................................195
Using the VBA debugger....................................................................196
About the Debugger.....................................................................................196
Setting breakpoints in your code .....................................................196
Using the Watch window ...................................................................199
Using the Locals Window ..................................................................201
Bug Reduction Tips......................................................................................201

Chapter 14: VBA Programming Examples . . . . . . . . . . . . . . . . . . . . . . .203


Working with Ranges ...................................................................................203
Copying a range ..................................................................................204
Copying a variable-sized range.........................................................205
Selecting to the end of a row or column..........................................206
Selecting a row or column.................................................................207
Moving a range ...................................................................................207
Looping through a range efficiently.................................................208
Prompting for a cell value .................................................................209
Determining the selection type .......................................................210
Identifying a multiple selection ........................................................211
Changing Excel Settings ..............................................................................211
Changing Boolean settings................................................................212
Changing non-Boolean settings ........................................................212
Working with Charts ....................................................................................213
Modifying the chart type...................................................................214
Looping through the ChartObjects collection................................214
Modifying chart properties ...............................................................215
Applying chart formatting.................................................................215
VBA Speed Tips ............................................................................................216
Turning off screen updating..............................................................216
Turning off automatic calculation ....................................................217
Eliminating those pesky alert messages .........................................218
Simplifying object references............................................................219
Declaring variable types....................................................................219
Using the With-End With structure ............................................................220
Table of Contents xiii
Part IV: Communicating with Your Users.....................221
Chapter 15: Simple Dialog Boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223
Why Create UserForms?..............................................................................223
The MsgBox Function ..................................................................................224
Displaying a simple message box.....................................................225
Getting a response from a message box..........................................225
Customizing message boxes .............................................................226
The InputBox Function................................................................................229
InputBox syntax..................................................................................229
An InputBox example.........................................................................229
The GetOpenFilename Method...................................................................231
The syntax...........................................................................................232
A GetOpenFilename example............................................................232
Selecting multiple files.......................................................................234
The GetSaveAsFilename Method ...............................................................235
Getting a Folder Name .................................................................................236
Displaying Excel’s Built-in Dialog Boxes....................................................236

Chapter 16: UserForm Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239


Knowing When to Use a UserForm ............................................................239
Creating UserForms: An Overview.............................................................240
Working with UserForms.............................................................................241
Inserting a new UserForm .................................................................241
Adding controls to a UserForm ........................................................242
Changing properties for a UserForm control..................................243
Viewing the UserForm Code window...............................................244
Displaying a UserForm.......................................................................245
Using information from a UserForm ................................................245
A UserForm Example ...................................................................................246
Creating the UserForm.......................................................................246
Adding the CommandButtons ..........................................................247
Adding the OptionButtons ................................................................248
Adding event-handler procedures....................................................250
Creating a macro to display the dialog box ....................................251
Making the macro available ..............................................................252
Testing the macro...............................................................................253

Chapter 17: Using UserForm Controls . . . . . . . . . . . . . . . . . . . . . . . . . .255


Getting Started with Dialog Box Controls .................................................255
Adding controls ..................................................................................255
Introducing control properties.........................................................257
Dialog Box Controls: The Details ...............................................................259
CheckBox control ...............................................................................259
ComboBox control .............................................................................260
CommandButton control...................................................................261
xiv Excel 2007 VBA Programming For Dummies

Frame control......................................................................................262
Image control ......................................................................................262
Label control .......................................................................................263
ListBox control ...................................................................................264
MultiPage control ...............................................................................265
OptionButton control.........................................................................266
RefEdit control ....................................................................................267
ScrollBar control.................................................................................267
SpinButton control .............................................................................268
TabStrip control..................................................................................269
TextBox control ..................................................................................269
ToggleButton control .........................................................................270
Working with Dialog Box Controls .............................................................270
Moving and resizing controls............................................................270
Aligning and spacing controls ..........................................................271
Accommodating keyboard users......................................................272
Testing a UserForm ............................................................................273
Dialog Box Aesthetics..................................................................................274

Chapter 18: UserForm Techniques and Tricks . . . . . . . . . . . . . . . . . . .275


Using Dialog Boxes.......................................................................................275
A UserForm Example ...................................................................................275
Creating the dialog box......................................................................276
Writing code to display the dialog box............................................278
Making the macro available ..............................................................279
Trying out your dialog box ...............................................................279
Adding event-handler procedures....................................................280
Validating the data..............................................................................282
Now the dialog box works.................................................................282
More UserForm Examples...........................................................................282
A ListBox example..............................................................................282
Selecting a range.................................................................................287
Using multiple sets of OptionButtons..............................................288
Using a SpinButton and a TextBox ...................................................289
Using a UserForm as a progress indicator ......................................291
Creating a tabbed dialog box ............................................................295
Displaying a chart in a dialog box ....................................................296
A Dialog Box Checklist.................................................................................297

Chapter 19: Accessing Your Macros


Through the User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .299
CommandBars and Excel 2007 ...................................................................299
Excel 2007 Ribbon Customization..............................................................301
Working with CommandBars ......................................................................304
Commanding the CommandBars collection ...................................304
Listing all shortcut menus.................................................................304
Discovering Diverse Content Through
Random Scribd Documents
NOTE
[1] Questo conto (o piuttosto questa filastrocca) è il
primo, che soglia raccontarsi a' bambini pomiglianesi.
L'esordio è simile a quello del seguente omonimo. Cf.—
I.—Pitré. (Op. cit.) CXXXIV. La gatta e lu surci, versione
di Capaci. La gatta tiene il luogo della nostra
vecchierella. La chiusa è:—«Lu surciddu muriu; la gatta
si gratta e pila; la purtiera sbattulia; la finestra si grapi
e chiui; l' arvulu si sdirubbau; l'acidduzzu si spinnau; la
funtana si siccau; lu cuocu si misi lu culu 'nt'a lu fuocu;
lu monacu di S. Nicola, si dissi la missa cu lu culu di
fuora; e jeu, comu Riggina, vaiu a cernu la farina.==E
ieu, comu Re, mi pigghiu lu cafè.»—II.—Lo stesso Pitrè
ricorda due altri varianti; l'una palermitana, intitolata
Sasizzedda, dove un rocchio di salsicce surroga il
topolino; e l'ultimo crescendo è:—«Sasizzedda cadiu
'ntra la pignata; lu ferru fa tippitappi; so matri si gratta
e pila; la figghia di lu Re si misi la gramagghia; l'arvulu
si sdirubbau; l' aceddu si spinnau; la funtana si siccau;
la criatazza rumpiu la quartarazza; la donna pazza
jittau la farina chiazza chiazza; e lu monacu di Santu
Nicola, si dissi la missa cu lu culu di fora».—III.—e
l'altra di Polizzi-Generosa, intitolata Donn' Anna; in cui
la tartaruga di Donn'Anna riman cotta nella pentola
bollente. Eccone il crescendo finale:—«Tartuchedda si
vugghiu; Donn' Anna si gratta e pila; lu corvu si
spinnau; lu firrizzu si scadduzzau; la scala s'
allavancau; la picciuttedda rumpiu la quartaredda;
donna Pazza jittau la farina chiazza chiazza; la valenti
pigghia un lignu e si scaddozza li denti; lu sagristanu si
jetta di lu campanaru; e li zappunara levanu la testa a
cu veni veni».—IV.—Bernoni (Tradizioni popolari
veneziane. Puntata terza) Sorzeto e Luganega; dove la
chiusa è:—«'Na gran disgrazia xe nata in sta tera; el
sorzeto xe morto in caldiera; la Luganega pianze, che
se despera; la tola va atorno atorno; la scanzia buta
zozo i piati; la porta se inciava e se des'ciava; la
fontana no buta più aqua; e mi, che fo la massera,
camino sempre col cul per tera. Dise el patron: E mi,
che so' el paron, me butarò zozo per el balcon. E là, el
s'hà butà zo dal balcon; e el s'ha copà. E tuto questo
xe nato per la morte de sto sorzeto.»—V.—Una lezione
nel vernacolo copertinese o leccese è stata poco
accuratamente e non intieramente pubblicata nel
matto opuscolo e curioso dal titolo: A. Trifone
Nutricati-Briganti | Intorno | ai | Cunti e Racconti
popolari | del | Leccese | Illustrazioni e Note || The
sources of Italian are not to be found | in the classical
literature of Rome, but in | the popular dialects of
Italy. | Max Müller-Lectures on the science | of
Language. II, p. 61 || Wictor (sic) Thaler | und
Geselshaft (sic) | Wien | 1873. (Ma l'opuscoletto è
stampato effettivamente in Lecce; nè so comprendere
per qual cagione l'autore abbia voluto apporvi una data
falsa). Questo è l'unico conto, che vi si contenga.
Epperò non sarà forse discaro ai leggitori, i quali non
saprebbero come procurarsi l'opuscoletto del Nutricati,
ch'è fuori commercio, ch'io il riproduca migliorandone e
compiendone la lezione. (Il signor Nutricati, al quale ho
mandato le pruove di torchio, s'è benignato anch'egli
farvi qualche emendazione, e vuole, che si avvertano
due cose:—a) Che in Lecce si dice sempre rumpere e
rompere negli altri paesi della provincia:—b) che la
filastroccula (così la chiamano) non finisce
ordinariamente con la mamma (fimmina sciacculata;)
ma viene lu tata e lu figghiu e lu signore, riccu,
riccone. Tutta questa filastrocca si racconta ai bambini,
perchè si addormentino; e la povera balia o
governante non sa cosa far entrare nel suo racconto,
quando il bimbo non fa subito nanna). Alla versione del
Nutricati, fo seguire una variante, leccese anch'essa,
comunicatami dall'egregio Duca Sigismondo
Castromediano di Caballino.
LU CUMPARE SANGUNAZZIEDDHU
(Dialetto Leccese)
Lu cumpare Sangunazzieddhu aìa 'n annu, ci nu' sse
mutaa. 'Scìu a la chiazza, 'ccatiau 'nu cofanieddhu, lu
mise susu a l' ancutieddhu. L'ancutieddhu cadiu, e lu
cofanieddhu sse rumpìu.—«Sorte mmia, furtuna
'mara!»—Sse mise sutta a la porta della strada e
chiangia. Le porte, pe' la pena, sbattianu.—«Cce aìti,
porte mmei, ci sbattiti tantu?»—«Eh, cummare mita
mmia, le pene de lu mundu nu' le sai comu
suntu?»—«Comu suntu?»—«Lu cumpare
Sangunazzieddhu aìa 'n annu, ci nu' sse mutaa. 'Scìu a
la chiazza, 'ccattau 'nu cofanieddhu, lu mise susu a
l'ancutieddhu. L'ancutieddhu cadìu e lu cofanieddhu
sse rumpiu. Sse mise sutta a la porta e chiangia. E ieu,
pe' la pena, sbattu».—«E jeu»—disse la mita—«pe'
l'amore 'oscia mme spinnu tutta.»—Sse nde 'sciu susu
a 'n arveru e sse spennau. E l' arveru disse:—«Cce hai,
cummare mita mmia, ci te sta' spinni tantu?»—Eh,
cumpare arveru mmiu, le pene de lu mundu nu'le sai
comu suntu?»—«Comu suntu?»—«Lu cumpare
Sangunazzieddhu aìa 'n annu, ci nu' sse mutaa. Scìu a
la chiazza, 'ccattau 'nu cofanieddhu, lu mise susu a
l'ancutieddhu. L'ancutieddhu cadìu e lu cofanieddhu
sse rumpìu. Sse mise sutta a la a porta e chiangia. Le
porte, pe' la pena, sbattianu. E ieu mme spinnu tutta».
—«E jeu»—disse l'arveru,—pe' l'amore toa, mme
spàmpannu tuttu.»—Sutta a l'arveru c'era 'nu puzzu; e
nci cadianu le fronde intru.—«Cce hai, arveru mmiu, ci
te stà spampani tantu?»—«Eh! puzzu mmiu, le pene
de lu mundu nu' le sai comu suntu?»—«Comu
suntu?»—«Lu cumpare Sangunazzieddhu aìa 'n annu,
ci nu' sse mutaa. 'Sciu a la chiazza, 'ccattau 'nu
cofanieddhu, lu mise susu a l' ancutieddhu.
L'ancutieddhu cadiu e lu cofanieddhu sse rumpiu. Sse
mise sutta a la porta e chiangia. Le porte, pe' la pena,
sbattianu. E la cummare mita sse spennava tutta. E
jeu, pe' l'amore ssoa, mme spampanu tuttu!»—«E
jeu,»—disse lu puzzu—«pe'l'amore toa, mme 'ssaccu
tuttu.»—Ha 'sciuta la massara cu tira acqua, ha calatu
lu capasieddhu e ss'ha ruttu.—«Ah sorta mmia! cce
aìsti mo' ci te 'ssaccasti, puzzu mmiu?»—«Eh! massara
mmia, le pene de lu mundu, nu' le sai comu
suntu?»—«Comu suntu?»—«Lu Cumpare
Sangunazzieddhu aìa 'n annu, ci nu' sse mutaa. 'Sciu a
la chiazza, 'ccattau 'nu cofanieddhu, lu mise susu a
l'ancutieddhu. L'ancutieddhu cadiu e lu cofanieddhu
sse rumpiu. Sse mise sutta a la porta e chiangia. Le
porte, pe' la pena, sbattianu. E la cummare mita sse
spennau tutta. E lu cumpare àrveru sse spampanau. E
jeu, pe' l'ammore ssoa, mme 'ssaccu tuttu».—«E
jeu»—disse la massara—«su' 'na gioane tantu beddha,
rumpu quartara e quartareddha».—'Scìu a la mamma e
disse:—«Le pene de lu mundu nu' le sai comu
suntu?»—«Comu suntu?»—«Lu cumpare
Sangunazzieddhu aìa 'n annu, ci nu' sse mutàa. 'Scìu a
la chiazza, 'ccattau 'nu cofanieddhu. Lu mise susu a l'
ancutieddhu. L' ancutieddhu cadiu e lu cofanieddhu sse
rumpiu. Sse mise suttu a la porta de la strada e
chiangia. Le porte, pe' la pena, sbattianu. La cummare
mita sse spennau tutta. Lu cumpare àrveru sse
spampanau. Lu puzzu, pe' l'amore soa, sse 'ssaccau. E
jeu, ca su' 'na gioane tantu beddha, rumpu quartara e
quartareddha».—«E jeu»—disse la mamma—«su' 'na
fimmena sciacculata, pigghiu la banca e la minu a la
strada».—
(Variante)
Lu campare Sangunazzieddhu hia 'n annu, ci nu sse
'mmuaa. 'Sciu alla chiazza; 'ccattau 'nu cofanieddhu; lu
mise subbra 'n ancutieddhu. L'ancutieddhu catiu e lu
cofanieddhu sse rumpiu. Eccu ca lu cumpare
Sangunazzieddhu pella dogghia sse nde 'sciu a
campagna alla despersa. Truau 'na mita, ci stia subbra
'n àrveru. Sse 'utau la mita e disse:—«Cce hai,
campare Sangunazzieddhu mmiu, ci 'ai 'ccussì
'maru?»—«Ci sapissi le pene de lu mundu!... Nu'
mangiai e nu' beìi».—«Cce su' 'ste pene de lu
mundu?»—«Aia 'n annu, ci nu' mme 'mmutaa. 'Scii alla
chiazza; 'ccattai 'nu cofanieddhu, lu misi subbra 'n
ancutieddhu. L'ancutieddhu catiu e lu cofanieddhu sse
rumpiu».—Eccu ca la mita, pella corla, sse spennau
tutta quanta. L'arveru 'ddhu sse 'ncummia la 'idde; e
disse:—«Cce hai, cummare mita, ci te spinni
tutta?...»—«Ci sapissi le pene de lu mundu comu
suntu! Nu' mangiai e nu' beii!»—Le pene de lu mundu
comu suntu?»—«Lu cumpare Sangunazzieddhu 'ia 'n
annu, ci nu' sse mutaa. 'Sciu alla chiazza; 'ccattau 'nu
cofanieddhu; lu mise subra 'n ancutieddhu. L'
ancutieddhu catiu, e lu cofanieddhu sse rumpiu. Lu
cumpare Sangunazzieddhu, pella corla, sse dese alla
campagna alla despersa. Ieu lu 'iddi; e, pella corla,
mme' su' tutta spennata».—«Sì, cussì bete?»—respuse
l' arveru.—«E ieu, pella corla, 'ogghiu mme
spampanu!»—E sse spampanau. Sutta l'arveru nc'era
'nu puzzu, ddhu' catianu le pampane. Sse 'ota lu puzzu
e disse:—«Cce hai, cumpare arveru mmiu, ci tuttu te
spampanasti?»—«Ci sapissi le pene de lu mundu, nu'
mangiai e nu' beii!»—«Comu suntu 'ste pene de lu
mundu?»—«Lu cumpare Sangunazzieddhu 'ia 'n annu,
ci nu' sse mutaa. 'Sciu alla chiazza; 'ccattau 'nu
cofanieddhu, lu mise subbra l'ancutieddhu.
L'ancutieddhu catiu; lu cofanieddhu sse rumpiu. Lu
cumpare Sangunazzieddhu, pella corla, sse nde 'sciu 'n
campagna pe' la despersa. Lu 'idde la cummare mita,
ci, pella corla, tutta sse spennau; e ieu, pella corla
puru, rame spampanai».—«Sì, quistu nc'ete! E ieu,
pella corla, tuttu mme 'ddessaccu».—E lu puzzu sse
'ddessaccau. 'Sciu 'na fimmena cu ba tira acqua; e
l'acqua nu' benia.—«Cce hai, cumpare puzzu, ci nu'
mme dai acqua 'sta matina?»—«Ah, cummare mmia, le
pene de lu mundu nu' sai comu suntu! Ca, ci le sapissi,
nu' mangiai e nun beii!»—«Comu suntu,
cumpare?»—«Lu cumpare Sangunazzieddhu hia 'n
annu ci nu' sse mutaa. 'Sciu alla chiazza; 'ccattau 'nu
cofanieddhu; lu mise subbra 'n ancutieddhu.
L'ancutieddhu catiu; lu cofanieddhu sse rumpiu. Lu
cumpare Sangunazzieddhu, pella corla, sse dese alla
campagna pella despersa. E, pella corla, la mita sse
spennau, l'arveru sfrundau, e ieu 'osi mme
'ssaccu.»—«E ieu, ci su' fimmena, ci mme dicenu, ca
su' beddha, spezzu la zuca e rumpu la
quartareddha!»—La fimmena curre 'mmeru la
mmassaria, e troa la massara; ci la 'idde e li dice:
—«Cce hai, cummare mmia, cussì spamentata?»—«Eh,
se sapissi le pene de lu mundu, nu' mangiai e nu'
beii!»—«Cce cosa su' le pene de lu mundu?»—«Lu
cumpare Sangunazzieddhu 'ia 'n annu, ci nu' sse
mutaa. 'Sciu alla chiazza; 'ccattau 'nu cofanieddhu; lu
mise subbra 'n ancutieddhu. L'ancutieddhu catiu; lu
cofanieddhu sse rumpiu. Lu cumpare
Sangunazzieddhu, pella corla, curriu alla campagna
pella despersa. E, pella corla, la mita sse spennau:
l'arveru spampanau: lu puzzu 'ssaccau: e ieu, ci su'
fimmena, ca dicenu, ca su' beddha, spezzai la zuca e
rumpii la quartareddha!»—«E ieu»—respuse la
massara:—«su' 'na massara sciacquarandara, e rumpu
la fersura e la quatara!»—E sse mise a currere
'mmienzu le chesure, e da frunte sse 'ncontra cu' lu
massaru—«Cce hai, massara mmia, ci curri
tantu?»—«E ci sapissi le pene de lu mundu comu
suntu! Nu' mangiai e nu' beii.»—«Dine, comu suntu
'ste pene de lu mundu?»—«Lu cumpare
Sangunazzieddhu 'ia 'n annu, ci nu' sse mutaa. 'Sciu
alla chiazza; 'ccattau 'nu cofanieddhu, lu mise subbra a
'l' ancutieddhu. L' ancutieddhu catiu, e lu cofanieddhu
sse rumpiu. Lu cumpare Sangunazzieddhu, pella corla,
sse mise a currere pella campagna alla despersa; e,
pella corla, la mita spennau, l' arveru seccau, lu puzzu
'ssaccau, la fimmena, ci dicenu, ca ete beddha,
spezzau la zuca e rumpiu la quartareddha, e ieu, ci su'
'na massara sciacquarandara rumpii la fersura e la
quatara!»—«E ieu, ci su' massaru stralunatu, scapulu li
'uei e minu pell' aria li 'uembri cu' tuttu l'aratu.»—Eccu,
ca 'rria 'nu monacu, e disse allu massaru:—«Cce hai,
massaru? Cce si' 'mpacciutu 'sta matina?»—«Ci sapissi,
Patre mmiu, le pene de lu mundu! Nu' mangiai, e nu'
beii!»—«Cce su' le pene de lu mundu?»—«Lu cumpare
Sangunazzieddhu 'ia 'n annu, ci nu' sse mutaa. Sciu
alla chiazza; 'ccattau 'nu cofanieddhu; lu mise subbra l'
ancutieddhu. L' ancutieddhu catiu; lu cofanieddhu sse
rumpiu. E, pella corla, cumpare Sangunazzieddhu sse
mise a currere pella campagna alla despersa. E, pella
corla, la mita spennau, l' arveru spampanau; lu puzzu
'ssaccau; la fimmena, ci dicenu, ca ete beddha,
spezzau la zuca e rumpiu la quartareddha; la massara
sciacquarandara rumpiu la fersura e la quatara; e ieu,
ci su massaru stralunatu, scapulai li 'uei e menai all'
aria li 'umbri cull' aratu!»—«E ieu, ci su monacu
'nchirecatu, portu 'nu pertusu, cu mme cacu!»—
[2] Scupà', spazzare, scopare.
[3] Chisiella, chiesetta.
[4] Turnesiello, diminutivo di tornese. Il tornese era
ultimamente mezzograno, ossia valeva due centesimi.
[5] Accattà', comprare. Dice una canzone
pomiglianese:
Quattordece e quattordece fanno vintotte,
Nennì', se vuò' 'a mme, voglio fà' 'o patte.
Ogne mattina 'na 'allina cotta;
Nennì', si nu' la tiene, mme l'accatte.

[6] Streppone (delle mele) torso, torsolo.


[7] Scorze (delle noci) guscio; (delle castagne) buccia.
La vecchierella però non è molto esatta: della noce
avrebbe dovuto gettar via anche la cica o pellicina
(pellecchia) e della castagna anche la peluia o sansa
(pellecchia anch'essa in pomiglianese).
[8] Scagnuozze.—«Scagliuozze e Scagliuozzole, sorta di
frittelle di grano d'India, gratissimo cibo del nostro
volgo di figura triangolare e per lo più quadrata (sic); e
perchè fritti fan come una pellicola intorno, quindi con
graziosa metafora calennarie a beste de cammera son
chiamati».—Così il Galiani. Il D'Ambra poi dice:
—«Scagliuozzo, Scagliuozzolo. Piccolo pezzo triangolare
di pasta di farina di formentone, fritto in padella».—E
dicon bene, salvo intorno alla forma degli scagliozzi
napoletani, che soglion per lo più essere romboidali.
Ma, in Pomigliano, scagnuozze significa pane di
formentone.
[9] Ricorda un Madrigale del Michiel, nella Benda di
Cupido.

Vecchia imbellettata.
Con tanti lisci e tanti,
Deh, perchè a tutte l'ore
Al vecchio volto dai nuovo colore,
E mentisci i sembianti?
Credi forse ingannar così gli amanti?
Folle, d'Ecuba mai
Elena non farai.

[10] La finestra ha un importanza grandissima negli


amoreggiamenti. Ed è continuamente ricordata nelle
canzoni popolari. Ma certo più nella città, che ne'
piccoli paesi, dove il popolino abita principalmente ne'
bassi, cioè in istanze a pian terreno, che finestre non
hanno, anzi solo una o due porte (l'anteriore e la
postìca). Ecco una storia romanesca intorno ad una
conversazione alla finestra.
Discendi, o mia Bettina,
E non aver timor,
Che questa è la mattina
Di favellar d' amor.
Discendi, che t' aspetta
Un fido tuo amator;
Discendi, mia diletta,
Non darmi più dolor.
—«Io la tua compagnia
«Non la posso accettar,
«Perchè la madre mia
«Potrebbe capitar.
«E da giovane onesta
«Non mi posso azzardar,
«Son qui sulla finestra
«Se tu mi vuoi parlar».—
Io la tua genitrice
L'ho veduta passar
Con una pescatrice
Sulla riva del mar.
E se ne va bel bello
Del buon fresco a pigliar,
È verso del Castello
Non vi è da dubitar.
—«Che pretensione è quella,
«Volermi comandar?
«Sappi, ch' io son zitella,
«E non mi disturbar.
«Se a basso non vengo io
«Tu mi puoi ben capir,
«Un ordine tengo io
«E lo deggio eseguir.
«Rammenta il tuo pensiero,
«Che non potrai mentir:
«Tu sei un lusinghiero,
«Venuto per tradir».—
Non sono un lusinghiero,
Neppure un traditor;
Ti parlo da sincero,
Non tengo altro amor.
—«E se brami d'amarmi,
«Ascolta il mio dir;
«Ch' io voglio ritirarmi,
«Qualcuno puol venir.
«Domani un foglio scritto
«Ti farò capitar.
«E bada di star zitto
«Saperti regolar».—

Ecco poi alcune canzoni pomiglianesi intorno alle


finestre della innamorata
I. Fenesta, cu' 'sta nova gelosia,
Staje martellata co' centrelle r'oro.
Si v' hagge scummitate mm' 'o decite,
Ca lu stesso bene fa gran cosa.
Si v' hagge 'scetate da lu suonn'ammuruse,
Teccot' 'o suonno mmio, e vatte 'rriposa.

Gelosia:—«sorta di graticcio da finestra o simile, dello


da' latini transenna»—Centrelle, bullette.—Scummitate,
scomodato, incomodato
II. Uomo. Figliola, cu' 'sta preola a 'sta fenesta,
Da luongo mme la mina la frescura.
Tu te mange l'uva quanno è aresta,
I' no' a pozzo verè' quanno è matura.
Bella vasinicò' 'rint'a 'sta testa,
Mm' 'a vularria fa' 'na fronn'a posta!

Donna. Nu'nzerve, ca mme sische, ca fora i' esco


Nennì', ca no' nce songh' 'a para vosta.
Para vosta non songhe, a 'ossignoria,
Manco nce venerò in casa vosta.

Prevola, pergola:—«Ingraticolato di pali, di stecconi o


d'altro, a foggia di palco o di volta, sopra il quale si
mandano le viti».—Da luongo, di lontano.—Vasinicò',
vocativo di vasinicola, basilico, Ocymum basilicum,
pianta solita a coltivarsi su' davanzal delle finestre e
celebre per la canzone della Lisabetta, ricordata dal
Boccaccio.— Testa, vaso di fiori.—«Dimandando una
gentildonna ad un Cavaliere, il quale si dilettava di
tener bellissimi testi di verdura, che rimedio c'era di
farli vedir vosì belli, si mostrò il Cavaliere un poco
ritroso a dirgliene; ma, importunato da lei, alla fine
rispose: Le teste di verzura, signora, sono come le
donne, che bisogna coprirle et innaffiarle; a
dimostrare, che le belle cose con l' artificio e con l'
industria s'abbelliscon più. E disse teste in femminino,
come s' usa in Napoli, per rendere il motto più
grazioso».—Tommaso Costo. Fuggilozio. E Giovan
Francesco Peranda, scrivendo a Giulio Cesare Riccardi,
Napoletano, e manifestandogli un desiderio del
Cardinal Gaetani:—«Desidera Sua Signoria Illustrissima
un Giardiniero et lo domanda ad impresto per due
mesi, perchè vuol persona, che vaglia et che non
cerchi ricapito. Sopra tutto, che sappia la quinta
essentia delle piante piccole, perchè studia in haver
quantità di teste. Parlo all'usanza vostra; et so, che
non ci torrete per antiquarii».—
III. Bella figliola, 'ncopp'a 'sta fenesta,
Chiunque passa le piecche mettite:
Chi è zuoppe e chi è scancellate,
Le piecche vuoste non 'e cuniscite.
Vuje parite 'na campana scassata
Manco lu battaglio vuje tenite.

È canzone di dispetto. Li piecche mettite, trovate da


dire, apponete difetti. Scancellate, storpio.
IV. Schiocca d'arruta mmia, addò' si' sagliuta!
'Ngimma a 'sta fenestella nce sì' arrivata.
Dinto nce sta nenna mmia addormuta,
Schiocca d'arruta mmia, nu' la 'scetare.

Schiocca, ciocca. Arruta, ruta.


[11] Lloco, là. Vedi pag. 54 e segg. del volume
presente la Nota 6 alla Novella II ter.
[12] Troppo averei da fare, se volessi qui riferire tutte
le voci d'animali, imitate dagli scrittori vernacoli. Citerò
solo di memoria l'imitazione onomatopeica del ronzio
della pecchia, che si trova appo il Capasso:
Haje visto maje, quonn'esceno le lape
Da Io cupo pe' ghire a la pastura?
Fanno tale zu zu, che, chi non sape
Lo naturale, sse mette appaura.
Comm'avessero chello de le crape,
Zompano ccà e llà pe' la verdura;
Ment'esce l' una, l' auta non aspetta;
E po' volano 'nsiemmo, a chietta a chietta.
Del resto, queste onomatopee sono talmente superate
da' moderni, che non valgon la pena di venir ricordate.
Ne voglio per testimonio solo un articoletto, che
rintaglio da un giornale francese:
«Triomphe de l'onomatopée. Un poëte méridional a
publié un Chant du Rossignol qui laisse bien loin toutes
les poésies imitatives connues jusqu'à ce jour.
Un rossignol chantait la nuit, sous la feuillée.
De son chant j'écrivis ce peu sous sa dictée;
De son chant mélodieux, plus agréable au coeur
Que le plus doux parfum de la plus belle fleur.

Tiû, tiû, tiû, tiû, pipit, tossit...


Ihpé, tûi, tûi, tûi, tûi, ritz.
Ihpé, tcho-tcho-tcho-tchou, psit.
Tcharry, tcharry, tcharry, tcharrit...
Tchi, tio, tio, tio, tio-tiossi.
Kouiô, trrrrrrrrrrrrrritz!!!

«Nous voici loin du fameux vers où Virgile, copiant


Ennius, imite le galop d'un cheval: Quadrupedante
putrem sonitu quatit ungula campum. Les vers de Du
Bartas sur l'alouette dans sa Première semaine, déjà
bien grotesques, ne sont rien eux-mêmes auprès de
l'onomatopée de notre sténographe des chants
d'oiseaux. On se souvient des vers de Du Bartas:
La gentille alouette, avec son tire-lire
Tire l'ire à l'irè, et tireliant tire
Vers la voûte du ciel, puis son vol vers ce lieu
Vire et désire dire, adieu, Dieu, adieu, Dieu.

«On pourrait peut-être faire quelque chose d'aussi


bête. Mais plus bête, non pas.»—
[13] Cunnia (idiotismo), con dio. Gnernò (idiotismo)
gnornò, nossignore.
[14] Scassà', scassinare, aprire con effrazione.
[15] Tiraturo, fodero, cassetta (di cantarano, tavolino,
ec.)
[16] Cimminera.—«Dalla cima nera così detto il
cammino del fuoco. Forse dall'Ebraico cimmer
(nigrescere), donde i Cimmerii. In fatti, sovvienmi un
passo del gran Bochart, il quale, nel suo Phaleg,
scrisse: Cimmerios a tenebris numen habere Phoenices
fabulati sunt, quia CAMAR vel CIMMERest
NIGRESCERE, unde CIMRIR est TENEBRARUM ATROR;
sic Jobi CAP. 3. v. 5., ubi vir sanctus tot malis
incumbentibus natali suo maledicit: POLLUANT inquit,
ILLUM TENEBRAE ET UMBRA MORTIS: TERRANT EUM
CIMRIRE JOM, (atrores diei; idest: tenebrae
densissimae) ecc.».—Così quel monomane del
Mazzarella-Farao. Ma dico a suocera perchè nuora
intenda; son coloro, che rinnovano adesso le follie
etimologiche del Mazzarella-Farao, che vorrei veder
rinsavire. 'Ngopp' 'a cimminera, vuoi dire su quel
cornicione della cappa del cammino, dove soglion porsi
i zolfanelli ecc.
[17] Sse sfasteriava. S'infastidiva.
[18] Pazzià', scherzare, folleggiare. Vedi, pag. 69, la
Nota 10 alla Novella III del presente volume. Ecco un
esempio di pazzeggiare nel senso di folleggiare,
scherzare:—«Era una sera a spasso per Pisa una frotta
di giovani; i quali, come avviene, essendo notte forte,
andavano pazzeggiando per tutto»...—Domenichi.
Facezie.
[19] Menesta, minestra.
[20] Menistà', scodellare.
[21] Spartugliava (vocabolo che manca nel Galiani e
nel D'Ambra).
[22] Arapì' e 'nzerrà', aprire e chiudere.
[23] 'Rariata, gradinata, scalinata.
[24] Scippà', graffiare. Vedi pag. 114 nota 2 alla
Novella III ter. del presente volume.
[25] Scarrupà', rovinare.
[26] Spinnà', spennare.
[27] Rangella o langella, brocca, mezzina. In Napoli
lancella. Perr. Agn. Zeff. C. VI.
Non facette sei iuorne auto, che chiovere;
E a butte, a fuste, a barile, a lancelle.

Il Galiani dice:—«Viene chiaramente dalla parola latina


lagena».—La langella è di cretaglia ed ha due manichi;
e serve di solito per l'acqua, sebbene Titta Valentini nel
Vasciello de l'Arbascia, dica:—«Cacciaieno fora po'
tanta lancelle | Che de latte de crapa erano chiene; |
Quale erno grosse e quale peccerelle, | Ma stevano
appelate muto bene».—Una canzone popolare
pomiglianese suona così:
'Nu juorno viddi la Calavresella
'Ncopp'a lo puzzo la rangella 'ngneva. (empiva)
I' nce lu dissi: Addio, Calavresella,
'Na vèppeta 'e chess'acqua mme faciarria.
Essa sse vota aggraziata e bella:
Nu' nzulo l'acqua, ma perzona mmia.
Accorto, ca nun rumpe 'sta rangella!
Ih quanta mazza mme dà mamma mmia!
==Si te la rompo, te la faccio nova
Cu' li denare de la vorza mmia.
[28] Di simili esercizii mnemonici ce n'è in ogni
dialetto. Eccone uno in trevigiano, intitolato: La bossa
del vin bianco.—«Questa xe la bossa del vin bianco.
Questo xe quel omo de la bossa del vin bianco. Questo
xe quel can, che gà morsegà quel omo de la bossa del
vin bianco. Questo xe quel baston, che ga bastonà
quel can, che gà morsegà quel omo de la bossa del vin
bianco. Questo xe quel albero, che ga fato quel
baston, che ga bastonà quel can, che ga morsegà quel
omo de la bossa del vin bianco. Questa xe quela
piegora, che pascolava soto quel albero, che ga fato
quel baston, che ga bastonà quel can, che ga morsegà
quel omo de la bossa del vin bianco. Questo xe quel
aseno, che pascolava insieme con la piegora sotto quel
albero, che ga fato quel baston, che ga bastonà quel
can, che ga morsegà quel omo de la bossa del vin
bianco. Ih, ih, ih! oh, oh, oh! questa xe quela
cansoneta, che cantava quel aseno, che pascolava
insieme con la piegora, soto quel albero, che ga fato
quel baston, che ga bastonà quel can, che ga morsegà
quel omo de la bossa del vin bianco. Questa xe quela
lana, fata da quela piegora, che pascolava insieme con
quel aseno, che cantava quela canzoneta ih ih ih! oh
oh oh! soto quel albero, che ga fato quel baston, che
ga bastonà quel can, che ga morsegà quel omo de la
bossa del vin bianco. Questo xe quel gaban, fato de
quela lana de quela piegora, che pascolava insieme co
l'aseno, che cantava quela canzoneta ih ih ih! oh oh
oh! soto quel albero, che ga fato quel baston, che ga
bastonà quel can, che ga morsegà quel omo de la
bossa del vin bianco. Questo xe quel pastor, che
portava quel gaban, fato de quela lana de quela
piegora, che pascolava insieme co quel aseno, che
cantava quela canzoneta ih ih ih! oh oh oh! soto quel
albero, che ha fato quel baston, che ga bastonà quel
can, che ga morsegà quel omo de la bossa del vin
bianco. Questa xe quela casa, che stava quel pastor,
che portava quel gaban, fato de quela lana de quela
piegora, che pascolava insieme co quel aseno, che
cantava quella canzoneta ih ih ih! oh oh oh! soto quel
albero, che ga fato quel baston, che ga bastonà quel
can, che ga morsegà quel omo de la bossa del vin
bianco. Questo xe quel leto, che sta in quela casa, che
xe morto quel pastor, che portava quel gaban, fato de
quela lana de quela piegora, che pascolava insieme co
quel aseno, che cantava quela canzoneta ih ih ih! oh
oh oh! soto quel albero, che ga fato quel baston, che
ga bastonà quel can, che ga morsegà quel omo de la
bossa del vin bianco. Questo xe quel prete, che ga
compagnà al sagrà a quel pastor, che xe morto in quel
leto, che stava in quela casa; che portava quel gaban,
fato de quela piegora, che pascolava insieme co
l'aseno, che cantava quela canzoneta ih ih ih! oh oh
oh! soto quel albero, che ga fato quel baston, che ga
bastonà quel can, che ga morsegà quel omo de la
bossa del vin bianco. E cosi ga fenio quel omo con
l'andarsene al sagrà anca lu, portando in man la bossa
del vin bianco».—
XI. bis.—'A GATTA
(Variante di 'A Vecchiarella.)
(Raccolta ad Avellino, in Principato Ulteriore.)
Nci steva 'na vota 'na gatta, chi scupava 'a chiesia.
Mente scupava, trovavo 'no tornesiello; e diceva:
—«Che mme n'hagge 'âccattà' de 'sto tornesiello? Si
mm' 'âccatto 'e pane, ne cadono 'e molliche; si mm'
'âccatto 'e castagne, n'haggio iettà' 'e scorze; si mm'
'âccatto 'e cirase, n'aggio jettà' 'e nuzze. Mo' mm'
'âccatto 'e 'janco e russo e mm' 'o metto 'nfaccia».—
Accussì fece. Ss' 'âccattavo 'e 'janco e russo e ss' 'o
mettivo 'nfaccia. E ssi mettivo 'ncopp' 'â finesta, ca
ssi voleva 'mmarità'. Passavo 'na vacca e dicivo:
—«Ohi, gatta, pecchè stai lloco?»—«Ca mmi voglio
'mmarità'».—«Ti volissi piglià' a mme?»—«Lassa
sentì', che voce tieni».—«Hu! Hu!»—«Va, vattenne,
ca mmi fai mette paura 'a notte. Passa 'nnanzi, ca
non ti voglio».—Po' passavo 'na pecora:—«Ohi, gatta,
che fai lloco?»—«Mmi voglio 'mmarità'».—«Ti volissi
piglià' a mme?»—«Lassa sentì', che voce tieni».
—«Mbè! Mbè!...»—«Passa 'nnanza, ca non te
voglio».—Po' passavo 'no sorecillo; puro dicivo:
—«Ohi gatta, che fai lloco?»—«Mmi voglio
'mmarità'.»—«Ti volissi piglià' a mme?»—«Lassa
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookname.com

You might also like