R
Rob
I have a simple macro below. I would like to exclude
certain Columns (c). So instead of reading c=5 to 16, it
will be 5 to 8, 10-13.......
p = "C:\Documents and Settings\"
f = "Stuff.xls"
s = "Sheet1"
Application.ScreenUpdating = False
For r = 12 To 72
For c = 5 To 16
a = Cells(r, c).Address
Cells(r, c) = GetValue(p, f, s, a)
Next c
Next r
Range("D:F,I:K,N:O").Select
Selection.NumberFormat = "#,##0_);(#,##0)"
Also, is there a way for me to identify these columns
later on when I am formatting them? So, instead of
D:F,I:K,N:O, i'll have 5-6, 8-10 and so on.
Thanks
certain Columns (c). So instead of reading c=5 to 16, it
will be 5 to 8, 10-13.......
p = "C:\Documents and Settings\"
f = "Stuff.xls"
s = "Sheet1"
Application.ScreenUpdating = False
For r = 12 To 72
For c = 5 To 16
a = Cells(r, c).Address
Cells(r, c) = GetValue(p, f, s, a)
Next c
Next r
Range("D:F,I:K,N:O").Select
Selection.NumberFormat = "#,##0_);(#,##0)"
Also, is there a way for me to identify these columns
later on when I am formatting them? So, instead of
D:F,I:K,N:O, i'll have 5-6, 8-10 and so on.
Thanks