Hi,
I have a table object (in the range A1:M20) with some numbers spread around. I have been using the following code to find the last column, but it always show the last column of the table, event if there is not data (numbers) on the last column. Even if I have numbers only until column B, LC is always 13.
LC=Sheet.Cells(x, Columns.Count).End(xlToLeft).Column
Can someone help me to find the way to show the column index of the actual last column with data?
(Sorry, I was not able to wrap the code.)
I have a table object (in the range A1:M20) with some numbers spread around. I have been using the following code to find the last column, but it always show the last column of the table, event if there is not data (numbers) on the last column. Even if I have numbers only until column B, LC is always 13.
LC=Sheet.Cells(x, Columns.Count).End(xlToLeft).Column
Can someone help me to find the way to show the column index of the actual last column with data?
(Sorry, I was not able to wrap the code.)