L
Legacy 15162
Guest
is ther some type of way to say in vba,
if xlws.name not in("blah","blah-blah","blah-blah-blah") then
do this
end if
if xlws.name not in("blah","blah-blah","blah-blah-blah") then
do this
end if
For Each xlws In xlWB.Worksheets
Select Case xlws.Name
Case "CONTROL", "APC", "LA-TX", "Cen LA", "West Laf", "South LA", "Midland", "Odessa", "Carolinas", "C Charlotte", "E Charlotte", "N Charlotte", "SW Charlotte", "W Charlotte", "S Charlotte"
' do nothing
Case Else
stSql = "Select [dbo_FTPlan].*" & _
" From [dbo_FTPlan]" & _
" Where [dbo_FTPlan].[StoreNo] = " & Right(xlws.Name, 5)
Set rsStoreData = CurrentDb.OpenRecordset(stSql)
PopFTMatrix xlws, rsStoreData
rsStoreID.MoveNext
End Select
Next xlws