troubleshooting Question

Problems selecting Columns and formatting

Avatar of gisvpn
gisvpnFlag for United States of America asked on
Microsoft Excel
5 Comments1 Solution279 ViewsLast Modified:
Hi,

I am working in Excel 2010 and I have problems referencing where I want to format.

Columns("B:B").Select
    With Selection.Interior
        .PatternColorIndex = xlAutomatic
        .ThemeColor = xlThemeColorDark1
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With

I have the above code but find it really difficult to select this place and it is with mainly this statement Columns("B:B").Select.

I try and many varients like it

sheets("xxx").Columns("B:B").Select

but it does not like this at all and I get it to work.

Can someone please tell me the correct way to reference an area to then format it or do something with it?

Thanks,

GISVPN
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros