Forum Discussion

arajagopal4's avatar
arajagopal4
Copper Contributor
Feb 02, 2023
Solved

Set range in VBA as the last non blank cell

I am trying to make my VBA code more flexible. I am trying to create a combination of all cells for a column set   Columns A through E are the input and Columns H and J show all combinations ...
  • HansVogelaar's avatar
    Feb 02, 2023

    arajagopal4 

    Use

     

    Set AISLE = Range(Range("B2"), Range("B1").End(xlDown))

Resources