JimmyCobblers
New Member
- Joined
- Apr 19, 2013
- Messages
- 25
Hi all
I'm a novice in VBA and I was wondering if I could tidy up a part of my code?
Basically with the below I edit two columns on different sheets, using the same range criteria and same formatting (ConvSel).
Can this be 'condensed'/improved? Any particular programming concept that I could read up on? (Only just started reading J.Walkenbach's Power Programming)
Thanks
And ConvSel is as below
I'm a novice in VBA and I was wondering if I could tidy up a part of my code?
Basically with the below I edit two columns on different sheets, using the same range criteria and same formatting (ConvSel).
Can this be 'condensed'/improved? Any particular programming concept that I could read up on? (Only just started reading J.Walkenbach's Power Programming)
Thanks
Code:
Range("A2", ActiveSheet.Range("A2").End(xlDown)).Select
Call ConvSel
Sheets("SUR").Select
Range("A2", ActiveSheet.Range("A2").End(xlDown)).Select
Call ConvSel
And ConvSel is as below
Code:
Sub ConvSel()
With Selection
.NumberFormat = "General"
.Value = .Value2
End With
End Sub