Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi ALL!
I'm trying to apply this sub to worksheets(4,6,8,10,12,14,16,18,20,22,24,26).
I figure I can loop through this sub until it completes this task or somehow tell vba to do only these worksheets.
Can someone please help me with this code?
Thank you!
pinaceous
I'm trying to apply this sub to worksheets(4,6,8,10,12,14,16,18,20,22,24,26).
I figure I can loop through this sub until it completes this task or somehow tell vba to do only these worksheets.
VBA Code:
Sub FormatWorkSheet()
Range("L11:L12").NumberFormat = "###,###,##0"
Range("L13").NumberFormat = "###,###,##0.000 ""KG"""
Range("L14").NumberFormat = "###,###,##0"
Range("L15").NumberFormat = "###,###,##0.000 ""KG"""
Range("L16").NumberFormat = "###,###,##0"
Range("L17").NumberFormat = "###,###,##0.000 ""KG"""
Range("L18").NumberFormat = "###,###,##0"
Range("L19").NumberFormat = "###,###,##0.000 ""KG"""
Range("L20").NumberFormat = "###,###,##0"
Can someone please help me with this code?
Thank you!
pinaceous