LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default hiding a workbook

I have a macro that opens a "security" workbook. On one sheet in the
"security" workbook is 5 IDs and Passwords.

Before the macro can execute other sections of the code, it opens this
workbook and checks the passwords and IDs. It if finds an existing ID and
password, then it continues executing the code otherwise I display a message
that the User is not authorized to use this feature. (Users have to key
their ID and Password) when they kick off the macro.

I can (1) open the "security" workbook, (2) hide the sheet with the IDs and
passwords, (3) compare the user's ID and password, and (4) close the security
workbook.

I have 2 issues:

(1) when I close the workbook, I would also like to close Excel. How can I
do this? Currently the application is open but the workbook is closed.

(2) Is there a way that I can do this, where the user doesn't see the
workbook or Excel is open?

Thanks for the help........


--
JT
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
workbook keeps hiding damorrison Excel Discussion (Misc queries) 2 July 23rd 06 02:59 PM
Hiding sheet in a workbook Curtis Excel Worksheet Functions 2 April 19th 06 08:39 PM
Hiding a workbook Jeff Excel Discussion (Misc queries) 1 October 7th 05 09:39 PM
Hiding a whole sheet in a workbook L.White Excel Programming 3 July 20th 05 10:11 PM


All times are GMT +1. The time now is 10:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"