Useful
Active Member
- Joined
- Mar 16, 2011
- Messages
- 494
Hi Mr Excel!
I've creted the macro code below and i want to select range from "g" to "h" and apply the formula (from B23) to this range
Sub Proper()
Dim f As String
Dim g As Range
Dim h As Range
f = Range("B23").Value
Range("M60000").End(xlUp).Offset(1, -5).Value = g
Range("M60000").End(xlUp).Offset(20, -5).Value = h
Range(g, h).Select = f
End Sub
Thanks
I've creted the macro code below and i want to select range from "g" to "h" and apply the formula (from B23) to this range
Sub Proper()
Dim f As String
Dim g As Range
Dim h As Range
f = Range("B23").Value
Range("M60000").End(xlUp).Offset(1, -5).Value = g
Range("M60000").End(xlUp).Offset(20, -5).Value = h
Range(g, h).Select = f
End Sub
Thanks