I would write like this
TextBox?...![]()
Sub test() With Cells(1).CurrentRegion With .Columns(3) .Formula = "=min(a1:b1)&""-""&right(max(a1:b1),3)" .Value = .Value End With End With End Sub
I would write like this
TextBox?...![]()
Sub test() With Cells(1).CurrentRegion With .Columns(3) .Formula = "=min(a1:b1)&""-""&right(max(a1:b1),3)" .Value = .Value End With End With End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks