Archive for 'VBA'
Build an Excel Add-In 1 – Basic Routine
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2012.
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. [...]
Posted: Monday, January 4th, 2010 under VBA.
Comments: 10
List VBA Procedures by VBA Module and VB Procedure
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2012.
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: 11
Robust VBA Save-As Technique
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2012.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
One of the most important things a VBA procedure can do is save a file, especially a file that’s been substantially modified by that procedure. This functionality is even better if the user is given the opportunity to specify a path and file name. You can simply pop up Excel’s own Save As dialog: Application.Dialogs(xlDialogSaveAs).Show [...]
Posted: Monday, December 7th, 2009 under VBA.
Comments: 21
Pivot Table Conditional Formatting with VBA
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2012.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
A reader encountered problems applying conditional formatting to a pivot table. I tried it myself, using the same kind of formulas I would have applied in a regular worksheet range, and had no problem. The reader responded that he was having problems in Excel 2007, and I was using 2003. Apparently in 2003 the conditional [...]
Posted: Wednesday, October 21st, 2009 under VBA.
Comments: 33
Apply Chart Formatting to Other Charts
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2012.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
Sometimes you have a whole workbook full of charts. You made some last week, and others yesterday, but the one you made today has just the right look to it. You’d like to apply the formatting to the rest of the charts, but the thought of reformatting all of those charts makes your brain ache. [...]
Posted: Friday, August 21st, 2009 under VBA.
Comments: 8
Unspecified but Painfully Frustrating Error
by Jon Peltier
Peltier Technical Services, Inc., Copyright © 2012.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
In recent months I have encountered a particularly troublesome error. It occurs in Excel 2003 and 2007 (and perhaps in earlier versions, but I don’t recall any such cases). The error is heralded by an unusually unhelpful error message, even my Microsoft’s standards: Microsoft Visual Basic – System Error &H80004005 (-2147467259). Unspecified error.
Posted: Tuesday, June 23rd, 2009 under VBA.
Comments: 23




