excel-vba

136 expert-verified Q&A posts in this category, sourced from the top-voted answers on Stack Overflow.

Solved March 31, 2014

out of memory error while naming chart

I am getting an "out of memory" error while trying to name a chart. I need to be able to reference this chart later…

thumb_up 8 trending_up 4
Solved February 5, 2014

Global variable declaration from class module

I have a workbook with multiple modules and multiple subs. There are some variables though that are usesd constantly in most subs such as…

thumb_up 9 trending_up 4
Solved January 18, 2014

Possible VBA AND Operator Anomaly

On my 32-Bit PC, running Office 2003 Excel VBA, the following code Debug.Print "" Debug.Print Hex(&HFF00000 And &HF00000) Debug.Print Hex(&HFF0000 And &HF0000)…

thumb_up 8 trending_up 3
Solved January 9, 2014

Trim all cells within a workbook(VBA)

I have attempted to add functionality to an excel add-in ave been developing which trims the leading spaces at the end of used cells,…

thumb_up 8 trending_up 3