vaclavvesely
New Member
- Joined
- Sep 24, 2019
- Messages
- 13
Hi, I have a spreadsheet where is a table filled with formulas returning "" by default and I need macro which will give me a last used cell/column containing any value ignoring cells containing ""
now I use this:
mycell = Cells(3, .Cells(myCell.Row, .Columns.Count).End(xlToLeft).Column)
that returns just end of the table - last column, because all cells are containing "". I need to return number of column containing visible data. Is there any solution?
Thanks
now I use this:
mycell = Cells(3, .Cells(myCell.Row, .Columns.Count).End(xlToLeft).Column)
that returns just end of the table - last column, because all cells are containing "". I need to return number of column containing visible data. Is there any solution?
Thanks