?
Solved

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

Posted on 2012-03-23
2
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 1000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

718 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