Skip to Main Content
Computing with Excel and VBA
book

Computing with Excel and VBA

by S.I. Krishan
August 2008
Beginner to intermediate content levelBeginner to intermediate
298 pages
10h 49m
English
Jones & Bartlett Learning
Content preview from Computing with Excel and VBA
Variables, Data Types, and Constants 247
window. If you have entered the code correctly, you will find that the sheet tabs display
the new names that the macro assigns them. You can check the font size and color by
typing your name in any cell in the A1:G1 range in each of the three sheets.
Try It
Add one extra line of the VBA code for each sheet in the Red_Green_Blue macro.
For Sheet1, add the following line to make the font type bold:
Sheet1.Range(“A1:G1”).Font.Bold = TRUE
For Sheet2, add a line to make the font italic, and for Sheet3 the line should make
the font strikethrough. Run your macro to test your modifi cations.
Variables, Data Types, ...
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.
Start your free trial

You might also like

Excel Programming with VBA Starter

Excel Programming with VBA Starter

Robert F Martin
Programming Excel with VBA and .NET

Programming Excel with VBA and .NET

Jeff Webb, Steve Saunders

Publisher Resources

ISBN: 9780763756680