hi - I'm totally new to Excel VBA. I've need code to copy the tables in a set of worksheets into Sheets(1). All works perfectly.
But, I now want to fill the header row cells of each table using, say, colorindex = 37.
As I loop through Sheets(2) to the end, I run the following code fragment...
The first line works perfectly, copying each table below the previous one. My problem is how to do the coloring of the header rows of each table.
My 2nd line of code above work, BUT ONLY in column A. In each table, I need to color from A to Q.
Any help for this newbie is appreciated!
Vicky
But, I now want to fill the header row cells of each table using, say, colorindex = 37.
As I loop through Sheets(2) to the end, I run the following code fragment...
Code:
Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(3)
Sheets(1).Range("A65536").End(xlUp)(-29).Interior.ColorIndex = 37
The first line works perfectly, copying each table below the previous one. My problem is how to do the coloring of the header rows of each table.
My 2nd line of code above work, BUT ONLY in column A. In each table, I need to color from A to Q.
Any help for this newbie is appreciated!
Vicky