Try this:
Sub excludesheets()
for i=1 to worksheets.count
if sheets(i).name<> "Enter name of 1^ sheet to exclude" and sheets(i).name<>"Enter name of 2^ sheet to exclude" then
sheets(i).select
call Part2_SAP
endif
next i
end sub
Moderator Edit:
Welcome to the forum, pippo12345.
Please notice that [CODE] tags have been added to your post. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
Thanks.
Bookmarks