Martin_H
Board Regular
- Joined
- Aug 26, 2020
- Messages
- 190
- Office Version
- 365
- Platform
- Windows
Hi,
I am trying to simplify my macro but no luck so far.
Would it be possible to fit this code (see below) - somehow - into one line?
Thank you.
I am trying to simplify my macro but no luck so far.
Would it be possible to fit this code (see below) - somehow - into one line?
VBA Code:
Range("AL2:AL" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AM2:AM" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AN2:AN" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AO2:AO" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AP2:AP" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AQ2:AQ" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AR2:AR" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AS2:AS" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AT2:AT" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AU2:AU" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AV2:AV" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AW2:AW" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Range("AX2:AX" & LastRowColumnA).Formula = "=GETCOMMENTS(RC[-25])"
Thank you.