Skip to Content
Writing Excel Macros with VBA, 2nd Edition
book

Writing Excel Macros with VBA, 2nd Edition

by Steven Roman PhD
June 2002
Beginner
570 pages
16h 48m
English
O'Reilly Media, Inc.
Content preview from Writing Excel Macros with VBA, 2nd Edition

Appendix C. Command Bar Controls

In this appendix, we present a list of built-in command-bar controls, along with their ID numbers for use with the Add method of the CommandBarControls object.

Built-in Command-Bar Controls

Command-Bar Controls and Their Corresponding ID Numbers

<Custom>

1

&Spelling

2

&Save

3

&Print

4

&New

18

&Copy

19

Cu&t

21

&Paste

22

Open

23

Can’t Repeat

37

&Microsoft Word

42

Clear Contents

47

Custom

51

&Piggy Bank

52

Custom

59

&Double Underline

60

Custom

67

Custom

68

&Close

106

AutoFormat

107

&Format Painter

108

Print Pre&view

109

Custom

112

&Bold

113

&Italic

114

&Underline

115

&Custom

117

&Dark Shading

118

&Align Left

120

&Align Right

121

&Center

122

&Justify

123

What’s &This?

124

Custom

126

&Undo

128

&Redo

129

&Line

130

Te&xt Box

139

&Find File

140

&Top Border

145

&Bottom Border

146

&Left Border

147

&Right Border

148

Apply Inside Borders

149

&Outside Borders

150

Clear Border

151

&Group

164

&Ungroup

165

Bring to Fron&t

166

Send to Bac&k

167

Bring &Forward

170

Send &Backward

171

F&ull Screen

178

&Select Objects

182

&Record New Macro

184

&Macros

186

Step Macro

187

Resume Macro

189

Flip &Horizontal

196

Flip &Vertical

197

Rotate &Right

198

Rotate &Left

199

&Freeform

200

&Borders

203

&Drawing

204

&Edit Points

206

Sort &Ascending

210

Sort Des&cending

211

&Edit Box

219

&Check Box

220

&Combo Box

221

Control Properties

222

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

VBA and Macros for Microsoft Excel

VBA and Macros for Microsoft Excel

Bill Jelen, Tracy Syrstad
101 Ready-To-Use Excel Macros

101 Ready-To-Use Excel Macros

Michael Alexander, John Walkenbach

Publisher Resources

ISBN: 0596003595Errata Page