cheveley
Active Member
- Joined
- Sep 24, 2002
- Messages
- 273
my code writing skills leave a lot to be desired but i have written some code that works fine but i would like to know if i am replicating anything, or if there is redundant commands in my code. thanks.
If Worksheets("Drop down & vlookup tables").Range("h2") = "Number" Then Sheets("Main Input sect").Select Range("f106:j106").Select
Selection.NumberFormat = "#,##0"
Range("e106").Select
If Worksheets("Drop down & vlookup tables").Range("h2") = "Percentage" Then Sheets("Main Input sect").Select Range("f106:j106").Select
Selection.NumberFormat = "0.0%"
Range("e106").Select
If Worksheets("Drop down & vlookup tables").Range("h2") = "2 Decimal" Then Sheets("Main Input sect").Select Range("f106:j106").Select
Selection.NumberFormat = "#,##0.0"
Range("e106").Select
If Worksheets("Drop down & vlookup tables").Range("h2") = "Number" Then Sheets("Main Input sect").Select Range("f106:j106").Select
Selection.NumberFormat = "#,##0"
Range("e106").Select
If Worksheets("Drop down & vlookup tables").Range("h2") = "Percentage" Then Sheets("Main Input sect").Select Range("f106:j106").Select
Selection.NumberFormat = "0.0%"
Range("e106").Select
If Worksheets("Drop down & vlookup tables").Range("h2") = "2 Decimal" Then Sheets("Main Input sect").Select Range("f106:j106").Select
Selection.NumberFormat = "#,##0.0"
Range("e106").Select