excel-vba

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

Solved August 28, 2013

2 Dimensional array from range

I have text data in Excel worksheet in the cells B6:H14. Some rows will have 2 cells with contents while others have 4 and…

thumb_up 34 trending_up 2
Solved August 8, 2013

Get name of an Excel worksheet containing code

I have code that resides on a page and references the content of the workbook. When executed from a different worksheet, I would like…

thumb_up 5 trending_up 6
Solved August 5, 2013

Excel VBA refer to QueryTable objects by name

I am developing a MS Excel 2013 tool with VBA which involves the use of QueryTables. One inconvenience I am experiencing is accessing existing…

thumb_up 5 trending_up 10
Solved July 14, 2013

VBA Excel Range() with Cell argument

Why does the following not work: Range(Cells(1,1)).Value = 3 Cells(1,1) should essentially be the same thing as using A1 right? (I realize that I…

thumb_up 9 trending_up 5
Solved June 5, 2013

Insert Columns Dynamically vba

I have a Report a part of it is hard to read and I would like to insert separating columns to make it easier…

thumb_up 8 trending_up 7