Question

Asked on 2010-12-25 at 22:08:15ID: 26737690

Excel VBA find sheet with partial name

by: Colduck500

Rating9.2Excellent

Hi there,
I use the VBA line of code listed below that finds and copies sheets named "My_Schedule" in multiple workbooks, into one collective workbook. Problem is that some sheets names are appended (for example: "My_Schedule (day2)", of which the line of code below skips over these workbook sheets. I tried adding an asterisk, but that didn't work. any suggestions on how to make the adjustment to copy sheets that have "My_Schedule" as part of an existing sheet's name?

Many thanks


Set ws = wb.Worksheets("My_Schedule")

Related Solutions

Solution

Access this solution immediately by signing up as a member of excelanswers.com--it’s quick, easy, and secure. We will return you to this solution, unlocked, when you’re done.

About this Solution

Sign up Now to View This Solution
Zone
general
Tags
Participating Experts
1
Solution Grade
A

Replies

 by:

Posted on 2010-12-25 at 22:15:57ID: 34557169

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Colduck

Posted on 2010-12-25 at 22:54:53ID: 34557170

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: brettdj

Posted on 2010-12-25 at 23:10:34ID: 34557171

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Stay Connected

Top Experts

  1. mlmcc

    10,880

    0 points yesterday

    Profile
  2. dlc110161

    3,500

    0 points yesterday

    Profile
  3. jimpen

    3,500

    0 points yesterday

    Profile
  4. rowanscott

    2,200

    0 points yesterday

    Profile
  5. billprew

    2,000

    0 points yesterday

    Profile
  6. imnorie

    2,000

    0 points yesterday

    Profile
  7. kgreene

    1,820

    0 points yesterday

    Profile
  8. harfang

    1,800

    0 points yesterday

    Profile
  9. Netminder

    1,000

    0 points yesterday

    Profile
  10. GRayL

    1,000

    0 points yesterday

    Profile
  11. eeshahidt

    868

    0 points yesterday

    Profile
  12. patrickab

    668

    0 points yesterday

    Profile
  13. tilsant

    664

    0 points yesterday

    Profile
  14. redrumkev

    400

    0 points yesterday

    Profile
  15. dave4dl

    400

    0 points yesterday

    Profile
  16. byundt

    200

    0 points yesterday

    Profile
  17. CORBETTMJ

    200

    0 points yesterday

    Profile
  18. pari123

    200

    0 points yesterday

    Profile
  19. tagit

    200

    0 points yesterday

    Profile
  20. broomee9

    200

    0 points yesterday

    Profile
  21. Dave96

    200

    0 points yesterday

    Profile

BrowseAre you an Expert?