I don't see why not..
Code:Dim AA As String AA = "Apple" & 28745 MsgBox AA
Message Box would show Apple28745
Sub PDFSAVEE()
Dim fPath As String
fPath = "C:\User\Vanda\Desktop\"
Dim ws As Worksheet
For Each ws In Worksheets
Select Case ws.Name
Case "INV", "Reim", "DN"
ws.ExportAsFixedFormat xlTypePDF, Filename:=fPath & "MyPDF_" & ws.Name & ".pdf"
Case Else
'do nothing
End Select
Next ws
End Sub
Sub test()
Dim ws As Worksheet
Dim INVname(1 To 3) As Variant, i As Long
INVname(1) = "INV"
INVname(2) = "Reim"
INVname(3) = "DN"
For Each ws In Worksheets
For i = LBound(INVname) To UBound(INVname)
If ws.Name Like INVname(i) & "*" Then
MsgBox ws.Name
End If
Next i
Next ws
End Sub
You're welcome.