Applications.visible = false closes other work books

vince012

New Member
Joined
Oct 24, 2022
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
I'm writing a code where, I will get the data from another work book and process the data on the work book with the user form then cut the data and paste to a new excel then save.

Process: Open excel where user form is (user form shown and work book is hidden) > open new work book on program and copy data > paste on main work book then process > save to another workbook.

I added Application.Visible = False and UserForm1.Show in ThisWorkbook to show the user form and hide the work book. Problem is upon hiding all the work books and opening the new work book to copy the data all other work book does not appear anymore and I don't know if it closes or still hidden. Any thoughts on this? Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Launch Excel again, and the run some code like this:

VBA Code:
Sub DisplayHiddenWorkbooks()
    Dim WB As Workbook
    For Each WB In Workbooks
        WB.Application.Visible = True
    Next WB
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top