[COLOR="Blue"]Sub[/COLOR] ToZIP()
[COLOR="Blue"]Dim[/COLOR] fso [COLOR="Blue"]As[/COLOR] [COLOR="Blue"]Object[/COLOR], aFile [COLOR="Blue"]As[/COLOR] objec
[COLOR="Blue"]Set[/COLOR] fso = CreateObject("Scripting.FileSystemObject")
[COLOR="Blue"]For[/COLOR] [COLOR="Blue"]Each[/COLOR] aFile [COLOR="Blue"]In[/COLOR] fso.GetFolder(ThisWorkbook.Path).Files
[COLOR="Blue"]If[/COLOR] fso.GetExtensionName(aFile.Name) [COLOR="Blue"]Like[/COLOR] "[Xx][Ll][Ss][XxMm]*" [COLOR="Blue"]Then[/COLOR]
[COLOR="Blue"]Name[/COLOR] aFile.Name [COLOR="Blue"]As[/COLOR] Replace(aFile.Name, "." & fso.GetExtensionName(aFile.Name), "") & ".zip"
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]If[/COLOR]
[COLOR="Blue"]Next[/COLOR]
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]Sub[/COLOR]