I have a simple macro that trims and changes the case of a cell from lower to UPPER, however when I run this macro and the cell is inside of a table, it seems to remove the table. The values remain, but it is converted back to just a range. Here is what my code looks like. Is there any way to preserve the condition and just change the Case?
Much appreciated!
Code:
Sub Trim_And_UPPER()
ActiveSheet.UsedRange = Evaluate(Replace("IF(@="""","""",UPPER(TRIM(@)))", "@", ActiveSheet.UsedRange.Address))
End Sub
Much appreciated!
Last edited: