Solved

If excel worksheet name <> "Summary" OR "SummaryClient" Then

Posted on 2012-03-23
2
295 Views
Last Modified: 2012-03-23
Hi Experts,

The code below works fine:
        If xlSheet.Name <> "Summary" Then
            xlSheet.UsedRange.ClearContents

But, I now need to adda second worksheet:
Attemtp 1: If excel worksheet name <> "Summary" OR "SummaryClient" Then
Attempt 2: If excel worksheet name <> Like "Summary*" Then

What's the best way to do this?

Thks in advance!
Steven
0
Comment
Question by:scsnow2310
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 250 total points
ID: 37757907
If xlSheet.Name <> "Summary"   AND xlSheet.Name <> "SummaryClient" Then
0
 

Author Closing Comment

by:scsnow2310
ID: 37757956
Great - Thanks!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

929 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