I have an application that opens up any generic Excel application.
I currently cycle through each worksheet, and want to apply formatting to any cell that has data in it on the worksheet.
How can I detect only the cells that have data in them and assign them to a range, i.e. range(A1,B4,C5:F100...) or something a little more generic.
My current functions enterprit the data being modified as a range, so I would like to know how to tie these together.
In addition:
I had orignally had the user specify the range to check on each worksheet, i.e. A1:Q700, but this current range show here is causing an overflow problem on this line of code;
i_NumberofCells = i_NumberofCells + m_objWorksheet.Range(Text2.Text).Cells.Count
any ideas how to fix this?
I currently cycle through each worksheet, and want to apply formatting to any cell that has data in it on the worksheet.
How can I detect only the cells that have data in them and assign them to a range, i.e. range(A1,B4,C5:F100...) or something a little more generic.
My current functions enterprit the data being modified as a range, so I would like to know how to tie these together.
In addition:
I had orignally had the user specify the range to check on each worksheet, i.e. A1:Q700, but this current range show here is causing an overflow problem on this line of code;
i_NumberofCells = i_NumberofCells + m_objWorksheet.Range(Text2.Text).Cells.Count
any ideas how to fix this?