For w = 2 To totrows
Range("B" & w).Select
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
If Range("G" & w).Value = "yes" Then
Range("C" &...
I'm trying to select a range of cells all on one line using the command
Range("C:G" & w).Select
where w is the for loop count variable. I keep getting a 1004 error so I replaced the C:G with one statement for each cell (C, D, E, F, G) which is ugly but works:
Range("C" & w).Select
...
Skip, I don't follow. Think of me as the worst programmer you've ever met. I can read code and understand it but I need the details thoroughly explained.
I have experience coding in several languages (VBA not being one of them) and am trying to teach myself enough VBA to write intelligent macros in Excel and Access. I have gleaned a lot of the necessary code off the internet and managed to figure out how to add Excel records into Access but want...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.