anupamtiwari05
Member
Hi All Excel Ninja & Experts,
I need your help to know the VBA code to close specific opened folder seen in taskbar.
I have searched a lot but could not find exact code which can help me to loop through all the opened folders in taskbar and then can close specific folder window like we do to close all the opened workbooks except this workbook.
On some websites, I found that we can loop in "Task" entries which is there in task manager and for that they suggested to define variable like:
Dim myFld as Task
And then used the For Each loop like below
[pre]
[/pre]
Next
However when I am defining the variable as Task its showing error as its not there in VBA library.
Please help me on this problem.
I hope you can understand my query.
Please let me know if you need more details.
Thanks for all of your kind support.
Thanks & Regards,
Anupam Tiwari
I need your help to know the VBA code to close specific opened folder seen in taskbar.
I have searched a lot but could not find exact code which can help me to loop through all the opened folders in taskbar and then can close specific folder window like we do to close all the opened workbooks except this workbook.
On some websites, I found that we can loop in "Task" entries which is there in task manager and for that they suggested to define variable like:
Dim myFld as Task
And then used the For Each loop like below
[pre]
Code:
For Each myFld in Tasks
'VBA code
myFld.Close
Next
However when I am defining the variable as Task its showing error as its not there in VBA library.
Please help me on this problem.
I hope you can understand my query.
Please let me know if you need more details.
Thanks for all of your kind support.
Thanks & Regards,
Anupam Tiwari