Jonnathanjons
Member
Hello, How can I add a list of new Column names to an existing columns in the report and add a new color to the new column range added. I would like to have the new columns created at the right end of report. I would also like to have a color highlighted for the existing column range and another color for the new column range. It will be great if it can be achieved in 1 or 2 lines possible. Here is the code I would like to work on. You may provide a better code if possible
I tried below code but showing error.
Sub InsertHeaders()
Sheets("CONSOLIDATED").Cells(1).Resize(1, 6).Value = Array("Fiscal Year", "Month", "Month_Year", "Project", "Local Expense", "Base Expense")
End Sub
I tried below code but showing error.
With Ws.UsedRange.Columns.Cells(1, .Count + 1).value = Array("Fiscal Year", "Month", "Month_Year", "Project", "Local Expense", "Base Expense")
End With