Archive for 'VBA'
Alternative to Excel’s Flaky RefEdit Control
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
I recently wrote about Using RefEdit Controls in Excel Dialogs. I use(d) them a lot, and they are a handy way on a dialog to get a range that the user wants a procedure to use.
These controls are prone to incompatibility issues between versions of Excel, particularly between Classic Excel (up to 2003) and new [...]
Posted: Monday, April 12th, 2010 under VBA.
Comments: 10
Build an Excel Add-In 6 – Interface for 2003
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
This is the sixth of nine installments in the Build an Excel Add-In series. In previous installments, we wrote some code to perform a useful task, enhanced its functionality to make it more broadly applicable, modularized the code and included an auxiliary modular procedure, built a dialog to ask the user for preferences, and brought [...]
Posted: Monday, March 15th, 2010 under VBA.
Comments: 6
Recorded Macro Error with Bubble and Stock Charts
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
You have a chart that you make every week or every month, and you’re tired of making it from scratch every time. So you record a macro to automate the process.
When you run the macro to make your chart the next time, you get no chart. Instead you get an ugly error message.
Posted: Thursday, January 28th, 2010 under VBA.
Comments: 8
Build an Excel Add-In 5 – Tie the Code Together
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
This is the fifth in a series of posts that shows the steps involved in building an Excel add-in. In Build an Excel Add-In 1 – Basic Routine I showed a VBA procedure that creates a regular chart from an arbitrary rectangular range, including from a pivot table. In Build an Excel Add-In 2 – [...]
Posted: Tuesday, January 26th, 2010 under VBA.
Comments: 4
Build an Excel Add-In 4 – Create the Dialog
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
This is the fourth part of a series that shows the steps involved in building an Excel add-in. In Build an Excel Add-In 1 – Basic Routine I showed a VBA procedure that creates a regular chart from an arbitrary rectangular range, including from a pivot table. In Build an Excel Add-In 2 – Enhanced [...]
Posted: Wednesday, January 13th, 2010 under VBA.
Comments: 5
Using RefEdit Controls in Excel Dialogs
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
RefEdit Controls
RefEdit controls allow the user to select a range of cells with the mouse. While the user is selecting cells, the parent UserForm shrinks to the size of the RefEdit plus the title bar. The address of the selected range appears in the RefEdit and updates as the mouse is dragged, and the size [...]
Posted: Monday, January 11th, 2010 under VBA.
Comments: 15
Build an Excel Add-In 3 – Auxiliary Modular Functions
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
In Build an Excel Add-In 1 – Basic Routine I coded a procedure in VBA to create a regular chart from an arbitrary rectangular range, including from a pivot table. In Build an Excel Add-In 2 – Enhanced Functionality I turned this routine into a modular function, that could be called from any code which [...]
Posted: Friday, January 8th, 2010 under VBA.
Comments: 6
Build an Excel Add-In 2 – Enhanced Functionality
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
In Build an Excel Add-In 1 – Basic Routine I coded a procedure in VBA to create a regular chart from an arbitrary rectangular range, including from a pivot table. In this post I will begin the process of turning this routine into an Excel add-in.
The VBA procedure in Build an Excel Add-In 1 – [...]
Posted: Wednesday, January 6th, 2010 under VBA.
Comments: 5
Build an Excel Add-In 1 – Basic Routine
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
Sometimes you have data that’s been analyzed in a pivot table, and you want to graph it, but a pivot chart doesn’t do what you want. In Regular Charts from Pivot Tables I showed how to create a regular chart from a pivot table. I described a manual process, which works fine, but becomes tedious.
In [...]
Posted: Monday, January 4th, 2010 under VBA.
Comments: 9
List VBA Procedures by VBA Module and VB Procedure
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
Mathias Brandewinder of Clear Lines Blog tweeted up Displaying a List of All VBA Procedures in an Excel 2007 Workbook from the Ribbon, an article by Microsoft’s Frank Rice on the MSDN web site, which showed a VBA procedure for listing all of the VBA procedures in a VB project. Interesting procedure, could be very [...]
Posted: Thursday, December 10th, 2009 under VBA.
Comments: 9

















