+ Reply to Thread
Results 1 to 12 of 12

Popup Userform on System's

Hybrid View

  1. #1
    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:
    @echo off
    rem ExcelForumVbsPopUpMessage .bat
    rem
    rem
    rem Output a message to the Windows User
    
    rem Pushd   Reference: http://ss64.com/nt/pushd.html
    rem Change the current directory to the folder of the currently running .bat file
    pushd %~dp0
    
    rem Start   Reference: http://ss64.com/nt/start.html
    rem cmd.exe Reference: http://ss64.com/nt/cmd.html
    rem Wscript Reference: https://en.wikipedia.org/wiki/Wscript
    rem
    rem  /min = Run cmd.exe minimized
    rem  ""   = No Window Title
    rem /c    = Terminate cmd.exe when wscript is completed
    rem
    start /min "" cmd.exe /c wscript ExcelForumVbsPopUpMessage.vbs
    Sample Windows .vbs file ExcelForumVbsPopUpMessage .vbs:
    '* ExcelForumVbsPopUpMessage.vbs
    '*
    '* MsgBox Reference: https://msdn.microsoft.com/en-us/library/sfw6660x%28v=vs.84%29.aspx
    '*
    '* Output a message to the Windows User
    MsgBox "This is line one of a message."   & vbcrlf &   _ 
    "This is line two of a message."   & vbcrlf &  vbcrlf &  _ 
    "This is lline four of a message (no line 3)."   & vbcrlf &   _ 
    "There is probably a 1024 Character Limitation."   & vbcrlf &   _ 
    "This is the Last Line.", _
    vbOKOnly, _
    "Title"
    Lewis
    Attached Files Attached Files

+ 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. 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