JasonEnsor
Programmer
Hey Guys,
I assure you I am almost done cleaning this code up so you will get a break from me soon. I'm trying to see if there is a better way of handling the code detailed below. Normally i would loop through it but as i am using J -Q in the range it's not possible...well to my knowledge. Any ideas?
Many thanks in advance
Jason
I assure you I am almost done cleaning this code up so you will get a break from me soon. I'm trying to see if there is a better way of handling the code detailed below. Normally i would loop through it but as i am using J -Q in the range it's not possible...well to my knowledge. Any ideas?
Code:
With NewPaymentForm
.txtHol1.Value = Format(SwimmerDetails.Range("J" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
.txtHol2.Value = Format(SwimmerDetails.Range("K" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
.txtHol3.Value = Format(SwimmerDetails.Range("L" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
.txtHol4.Value = Format(SwimmerDetails.Range("M" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
.txtHol5.Value = Format(SwimmerDetails.Range("N" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
.txtHol6.Value = Format(SwimmerDetails.Range("O" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
.txtHol7.Value = Format(SwimmerDetails.Range("P" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
.txtHol8.Value = Format(SwimmerDetails.Range("Q" & SwimmerT.SwimmerRow), "dd/mm/yyyy")
End With
Many thanks in advance
Jason