Solved

Apply format to certain worksheets in workbook

Posted on 2013-11-04
1
274 Views
Last Modified: 2013-11-04
I need to be able to apply conditional formats to certain sheets in an excel file.
This is what I have:

Open in new window

Dim vSheets As Variant
Dim wb As Workbook

Set wb = ThisWorkbook

vSheets = Array("Referrals", "MessagesLeft", "ServiceLevel", _
        "RPC_NoPTP_NoReferral_Cnt", "RPC_NoPTP_NoReferral_%", "Download", "Attempts", "DialerConnects")
For Each vSheets In wb.Worksheets

Variance
Next vSheets
0
Comment
Question by:DCUnited
1 Comment
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 300 total points
Comment Utility
I assume that variance is a sub. You can have something like

vSheets = Array("Referrals", "MessagesLeft", "ServiceLevel", _
        "RPC_NoPTP_NoReferral_Cnt", "RPC_NoPTP_NoReferral_%", "Download", "Attempts", "DialerConnects")
For Each vsheet In vSheets
wb.Worksheets(vsheet).Activate
Variance
Next vsheet
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now