• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

simple vba code- active workbooks [SOLVED]

asafraz81

Member
hi there

i have a little problem i cant solve'

i want to write a code that tells me what workbooks is active all the time.

i succeed to write a code that tells me how many open but i cant get the file name.

please help'

asaf
 
Hi Asaf ,


Try this :

[pre]
Code:
Public Sub Name_Open_Workbooks()
Dim wbk As Workbook
For Each wbk In Workbooks
MsgBox wbk.Name
Next
End Sub
[/pre]
Narayan
 
Hi, azafrz81!

Glad you could solve it by yourself, well done. Maybe you want to share your solution with the community, so as people who read this would have the issue or question and the solution or answer as well.

Regards!
 
Back
Top