Set rng = Sheets("combine").Range("b" & (startb)":j" & (startj)).SpecialCells(xlCellTypeVisible)
i need help to pass variables into range when selecting cells.
Set rng = Sheets("combine").Range("b" & (startb)":j" & (startj)).SpecialCells(xlCellTypeVisible)
i need help to pass variables into range when selecting cells.
By passing variables, you can try another indexing, like
sh = Sheets("combine")
sh.Range(sh.Cells(row_x,col_x),sh.Cells(row_xx,col_yy))