Activate a certain sheet with wildcards

elmnas

Board Regular
Joined
Feb 20, 2015
Messages
206
Hello people,

I have got an Excel workbook that contains following sheets and names:

Kalle_Statistik
2015_04_17_NewPrices
Kalle Penta_2015_04
Kalle_LanguageCombs
Kalle_Row_One

I need a script that activate following sheet:

Kalle_Penta_2015_04

the number xxxx_xx can be any combination based on date.


Could someone help me?


Thank you in advance


Daniel
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
maybe this
Code:
Sub MM1()
Dim ws As Worksheet
For Each ws In Worksheets
If InStr(ws.Name, "Kalle Penta") Then ws.Activate
Next ws
End Sub
 
Upvote 0
is there any other way to do it?
the problem comes, when i activate the different sheet sheets, to copy data from one the "Kalle Penta"
 
Upvote 0

Forum statistics

Threads
1,223,764
Messages
6,174,364
Members
452,558
Latest member
jswan83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top