You can use standard array of strings to do that.
And any array element can be directly filled with sheet-to-be-moved name, like (just illustrative, simplest case):
Dim arr(1 To 3) As String
arr(1) = "Arkusz1"
arr(2) = "Arkusz2"
arr(3) = "Arkusz3"
Sheets(arr).Move
but of course you can first
Dim arr() As String, sheetstobemoved as long
redim arr(1 to 1)
and then dynamically grow the array
if someconditionformoving then
sheetstobemoved = sheetstobemoved +1
redim preserve arr(1 to sheetstobemoved)
arr(sheetstobemoved) = activesheet.name
end if
and finally, once the whole arr is ready move all "collectred" sheets:
Bookmarks