+ Reply to Thread
Results 1 to 12 of 12

Popup Userform on System's

  1. #1
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Thumbs up Popup Userform on System's

    Hi Team,

    We have shared drive in our system..
    the shared drive is accesssed by 5 users daily to access some files..

    Now can we have a popup macro here..
    means

    When all users open the drive then one Excelfile Userform should open as a popup,The userform have some instructions in it...
    the user will read the instructions & click Yes Button.. after which the excel file should close..

    This file should open on everyones system once a day...any assistance thank you
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Popup Userform on System's

    Hi Parth,

    If you are opening the Shared drive using a .bat file, you may not need Excel. You can put a Windows Script Host command in your Batch file that opens a MsgBox that looks exactly like an Excel MsgBox.

    See the attached zip file that contains two files with the following code:
    a. ExcelForumVbsPopUpMessage.bat - Windows Command File
    b. ExcelForumVbsPopUpMessage.vbs - Windows Host Script File

    Sample Windows .bat file ExcelForumVbsPopUpMessage.bat:
    Please Login or Register  to view this content.
    Sample Windows .vbs file ExcelForumVbsPopUpMessage .vbs:
    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Popup Userform on System's

    Hi Lewis... actually i am worried if i could put anything in windows script host..would be in C drive ..

    Actually users login to shared drive... & once the user connects to shared drive then only the userform should be open ....
    userform have some instructions written on it & one button to close the userform thats it...

    only the users connecting to shared drive should be able to see it...

    shared drive connects automatically as user logins in a system..in future we can update the user form instructions too & hence i thought of keeping the userform in shared drive so that every user connecting to shared drive will be able to see this atleast once a day... plz suggest
    Last edited by Parth007; 01-13-2016 at 01:18 PM.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Popup Userform on System's

    shared drive connects automatically as user logins in a system
    Probably not. When the User Logs in, there is probably a Startup .bat file created by the Administrator that connects the User to the Shared Drive. This is probably where you're message should be inserted, whether it is from a UserForm (in an Excel File) or by any other means.

    There has to be some way to trigger whatever displays your message, and that is also probably from the 'Startup' .bat file. I know of no way of triggering something spontaneously.

    I hope this helps.

  5. #5
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Popup Userform on System's

    Hi Lewis.. where will we place this .bat file or .vbs? If after a week if there is a change in message how do we updte it.. please assist..
    I am puzzled as to if users are more than 100 i will have to copy paste this .bat file in all systems

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Popup Userform on System's

    Man, use a little logic thinking. If it's a shared folder then all you need to do is place BOTH files in the shared folder an just INFORM the users what they need to do, run the batch file (I'd use the .cmd extension instead of .bat)
    I tested it here nice job @LJMetzger thanks for sharing
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Popup Userform on System's

    A minor change to the vbs code:

    Please Login or Register  to view this content.
    This way you can see what the meaning is and then you can continue depending on the user's choice.

  8. #8
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Popup Userform on System's

    Hi Kebellah, yes that what i thought of saving both the files in Shared drive.. however the users donot follow if i ask them to run the file..
    & so it should get automatically popup in their screen forcefully so that they could see it once a day.

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Popup Userform on System's

    Hi, it's very simple, if this a process that is required you explain this and have each user set a link in his / her startup folder so that it startup when they login.
    It's just a question explaining.
    If it's on a network you can ask the network guy to place this in the user's startup script.
    All tasks and work procedures start and end with the users complying with the stated policies.
    Train the users and you'll probably succeed, if they see the need and advantage, who knows ...

  10. #10
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Popup Userform on System's

    Thank you so much.. i will test this script in my system..

    Putting in Startup is a good idea...
    how do i set the belwo code...

    Please Login or Register  to view this content.

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Popup Userform on System's

    What do you mean by 'How do I set the below code...'?
    You save the code a a vbs script (it's the same as a batch file only it's a vbs script because the vbs extension describes what it's going to do

    The text in code block below is what you can mail to the users to have them place it in their startup folder or paste it in their desktop but then they will have to click it themselves

    Please Login or Register  to view this content.
    ExcelForumVbsPopUpMessage.vbs is the name you have give this file, you can also name it something like else like 'DailyPopUp.vbs'

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Popup Userform on System's

    What do you mean by 'How do I set the below code...'?
    You save the code a a vbs script (it's the same as a batch file only it's a vbs script because the vbs extension describes what it's going to do

    The text in code block below is what you can mail to the users to have them place it in their startup folder or paste it in their desktop but then they will have to click it themselves

    Please Login or Register  to view this content.
    ExcelForumVbsPopUpMessage.vbs is the name you have give this file, you can also name it something like else like 'DailyPopUp.vbs'

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Popup userform when click cell
    By amein in forum Excel General
    Replies: 7
    Last Post: 11-04-2015, 03:45 AM
  2. [SOLVED] popup calendar when clicking on cell in userform
    By Spritz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-19-2013, 04:08 PM
  3. userForm as popup message while calculating
    By gtmeloney in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2011, 11:28 AM
  4. Excel Userform Popup Notification
    By mwo in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-18-2011, 11:50 PM
  5. Create RMB popup menu in userform?
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2010, 01:01 PM
  6. Userform Comment box popup
    By R0bert0 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2007, 09:48 AM
  7. [SOLVED] UserForm Popup Menu ?
    By RAFAAJ2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2005, 01:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1