[COLOR=blue]Option[/COLOR] [COLOR=blue]Explicit[/COLOR]
[COLOR=#0000ff][/COLOR]
[COLOR=blue]Sub[/COLOR] MoveSheets()
[COLOR=blue]Dim[/COLOR] wkbSource [COLOR=blue]As[/COLOR] Workbook, wkbDestination [COLOR=blue]As[/COLOR] Workbook
[COLOR=blue]Dim[/COLOR] wks [COLOR=blue]As[/COLOR] Worksheet
[COLOR=blue]Const[/COLOR] strName [COLOR=blue]As[/COLOR] [COLOR=blue]String[/COLOR] = "dec"
[COLOR=blue]With[/COLOR] Application
.ScreenUpdating = [COLOR=blue]False[/COLOR]
.EnableEvents = [COLOR=blue]False[/COLOR]
[COLOR=blue]End[/COLOR] [COLOR=blue]With[/COLOR]
[COLOR=blue]Set[/COLOR] wkbSource = ThisWorkbook
[COLOR=blue]Set[/COLOR] wkbDestination = Workbooks.Add
[COLOR=blue]For[/COLOR] [COLOR=blue]Each[/COLOR] wks [COLOR=blue]In[/COLOR] wkbSource.Worksheets
[COLOR=blue]If[/COLOR] [COLOR=blue]InStr[/COLOR]([COLOR=blue]LCase$[/COLOR](wks.Name), strName) > 0 [COLOR=blue]Then[/COLOR]
wks.Copy Before:=wkbDestination.Sheets(1)
[COLOR=blue]End[/COLOR] [COLOR=blue]If[/COLOR]
[COLOR=blue]Next[/COLOR] wks
[COLOR=blue]With[/COLOR] Application
.ScreenUpdating = [COLOR=blue]True[/COLOR]
.EnableEvents = [COLOR=blue]True[/COLOR]
[COLOR=blue]End[/COLOR] [COLOR=blue]With[/COLOR]
[COLOR=blue]Set[/COLOR] wks = [COLOR=blue]Nothing[/COLOR]
[COLOR=blue]Set[/COLOR] wkbSource = [COLOR=blue]Nothing[/COLOR]
[COLOR=blue]Set[/COLOR] wkbDestination = [COLOR=blue]Nothing[/COLOR]
[COLOR=blue][/COLOR]
[COLOR=blue]End[/COLOR] [COLOR=blue]Sub[/COLOR]