How to stop Interaction with excel

Rayner

New Member
Joined
Sep 13, 2011
Messages
12
While running one of my application, excel will be opened at the middle. I need to minimize the excel and stop interacting with it, which means even if I click the excel task bar it should not open excel. It should be always in minimized state.

I have an code which works in XP and is not working in Windows7. Can anyone please provide some solution which works on both XP and windows7.


Code Snippet: ( which works in XP )


ExcelObject.WindowState = xlMinimized
ExcelObject.Interactive = False
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
hmmm it may be something you need to post in a VB6 forum but,
Code:
ExcelObject.WindowState = xlMinimized
above should still work. never seen the interactive property before. question, what is it you are trying to accomplish? why open and leave there?
 
Upvote 0
hmmm it may be something you need to post in a VB6 forum but,
Code:
ExcelObject.WindowState = xlMinimized
above should still work. never seen the interactive property before. question, what is it you are trying to accomplish? why open and leave there?

It's not particularly VB6 code, we can take it as a VBA code also.
ExcelObject.WindowState = xlMinimized, will minimize the excel window. But if we click the excel from taskbar it will again open. ExcelObject.Interactive = False, will prevent opening excel from taskbar. It will stop the interaction with excel. This property is not working in windows 7. So, I think this post should be posted in excel forum. I just want to know is there any other way I can lock excel.
 
Upvote 0
How about hiding the excel application instead of just minimizing it ? You can then unhide it when/if needed.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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