By: Sabrina Ayon

In reply to Larry.

Hello, Larry!
To get the values from a variable workbook name you can use this code. This will show the variable workbook name in a Msg Box.

Sub GetValues()
Dim wbName As String
wbName = ActiveWorkbook.Name
MsgBox wbName
End Sub

If you want to get all the active workbooks’ names you can use this.

Sub GetValues()
Dim wbName As Workbook
For Each wbName In Workbooks
ActiveCell = wbName.Name
ActiveCell.Offset(1, 0).Select
Next
End Sub