+ Reply to Thread
Results 1 to 6 of 6

How to enter something into cell when WScript.Popup box is active?

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    How to enter something into cell when WScript.Popup box is active?

    Greetings,
    1- Open enclosed file.
    2- Run Macro1.
    Please Login or Register  to view this content.
    Question: How to enter something into cell when WScript.Popup box is active?
    Attached Files Attached Files
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: How to enter something into cell when WScript.Popup box is active?

    Consider using a custom userform displayed with vbModeless

    UserForm1.Show vbModeless
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How to enter something into cell when WScript.Popup box is active?

    Hello HerryMarkowitz,

    I am not sure why you decided on using the Windows Script Host for a dialog box when other better choices exist. The code below uses an InputBox to accept the name and then transfer it to the correct cell. It has been added to the attached workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Re: How to enter something into cell when WScript.Popup box is active?

    Quote Originally Posted by AlphaFrog View Post
    Consider using a custom userform displayed with vbModeless
    UserForm1.Show vbModeless
    Hi AlphaFrog,

    UserForm1.Show vbModal :
    You can not interfere in any cells if UserForm is vbModal.
    However, excel screen stops if there are some other codes after UserForm1.Show vbModal line.

    UserForm1.Show vbModeless :
    You can interfere in any cells if UserForm is vbModeless.
    But, excel screen does not stop if there are some other codes after UserForm1.Show vbModeless line.

    So, both methods are not useful for my needs...
    Last edited by HerryMarkowitz; 03-22-2015 at 08:05 AM.

  5. #5
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Re: How to enter something into cell when WScript.Popup box is active?

    Quote Originally Posted by Leith Ross View Post
    Hello HerryMarkowitz,
    I am not sure why you decided on using the Windows Script Host for a dialog box when other better choices exist. The code below uses an InputBox to accept the name and then transfer it to the correct cell. It has been added to the attached workbook.
    Hi Leith Ross,
    InputBox is not good idea.
    Because I need to check any cells in the sheet, and want to interfere any cells...

    I am so sorry that, I couldnt ask this question clearly at first.
    Last edited by HerryMarkowitz; 03-22-2015 at 07:52 AM.

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: How to enter something into cell when WScript.Popup box is active?

    Quote Originally Posted by HerryMarkowitz View Post
    UserForm1.Show vbModeless :
    You can interfere in any cells if UserForm is vbModeless.
    But, excel screen does not stop if there are some other codes after UserForm1.Show vbModeless line.
    Create two procedures;
    1.) one for code before the userform and to show the userform,
    2.) the 2nd procedure for any code after the userform is done.

    The userform calls the 2nd procedure when it terminates.

    Please Login or Register  to view this content.

    Userform with two controls; CommandButton1 and Label1

    Please Login or Register  to view this content.

+ 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. Replies: 2
    Last Post: 01-03-2013, 04:32 PM
  2. [SOLVED] CreateObject("WScript.Shell").Popup
    By MyComputerGuy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2012, 09:18 AM
  3. Replies: 4
    Last Post: 05-07-2012, 07:13 PM
  4. calendar popup from active cell selection
    By reggie1000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2008, 12:59 PM
  5. [SOLVED] using WScript.CreateObject("Wscript.Shell
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2005, 02:20 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