Hide work book while running user form & in case if another workbook opens, macro workbook should be hidden

Maniraj280292

New Member
Joined
Sep 3, 2013
Messages
3
Hi All,

I have prepared an userform to take inputs from users. The inputs are stored in the excel workbook. While using the userform, the workbook is hidden using VBA code.

The problem is when any another excel is opened during this time, the already hidden workbook is popping up.
This should not pop up even if some other excel workbook is opened.

Can anyone help me?

I am using MS excel 2007. I tried using "Ignore other applications" option. it is not working. It is not allowing the macro userform to run while opening the workbook.

Regards,
Maniraj
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi, It is pretty big file to attach & also so many assoicated files which are all linked in the code.

When I launch the excel workbook, the userform gets activated and the workbook goes hidden. This works fine untill I open any other excel.

If i open any other excel, the hidden workbook pops up & if i minimize the workbook the userform also gets minimized with excel workbook.

Any idea? Below is the code currently i have used.

Private Sub UserForm_Activate()
Application.Visible = False

regards,
Maniraj
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,104
Messages
6,170,125
Members
452,303
Latest member
c4cstore

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