+ Reply to Thread
Results 1 to 7 of 7

msgbox without stop the macro

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    israel
    MS-Off Ver
    2007
    Posts
    15

    msgbox without stop the macro

    hi
    i need to get the value of the array by msgbox in the macro event , without to stop running the macro , its is possible

    the macro i wrote
    Please Login or Register  to view this content.
    the problem with the macro in the" msgbox arr(n1)" i need all the time to press ok to resume the macro again?
    is there a way to get msgbox whithout to stop the macro running?

    or all other way to display the array values apart from print the array value in the excel sheet cells?

    thank in advance
    Last edited by Leith Ross; 04-21-2015 at 02:47 PM. Reason: Added Code Tags

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: msgbox without stop the macro

    I don't believe you can... but you could use the status bar? This would put the message in the status bar:
    Please Login or Register  to view this content.
    then later to clear it:
    Please Login or Register  to view this content.
    Alternatively you could create a userform that displays the message.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    04-01-2015
    Location
    israel
    MS-Off Ver
    2007
    Posts
    15

    Re: msgbox without stop the macro

    only now i was test the statue bar its not useful for me because the statue bar will pause all update in the macro until the macro arrive" Application.StatusBar = False" also i want to see all the value for all the index infront of me .

    its possible to print the value of the array and the index(n1) at the userform if i work with macro change event? if yes can you help me please

    best regards

  4. #4
    Forum Contributor
    Join Date
    04-20-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    312

    Re: msgbox without stop the macro

    I would use debug.print instead of msgbox then you have everything in the immidiate window.

    Another option would be to open a second form with a listbox\textbox or just add the textbox listbox for logging to your main form

  5. #5
    Registered User
    Join Date
    04-01-2015
    Location
    israel
    MS-Off Ver
    2007
    Posts
    15

    Re: msgbox without stop the macro

    thank for your help
    i test it with simple macro , but only there is small problem of sequencing data
    i wrote the macro
    Please Login or Register  to view this content.
    the problem that the i get the result One under the other

    i get the value of i and under it i get the value of k , and i get the value of m and under it i get the value of t

    its possible to get the value of i and beside to get the value of m and beside the m to get the k and beside the t

    and not one under the other
    Attached Images Attached Images
    Last edited by Leith Ross; 04-21-2015 at 02:47 PM. Reason: Added Code Tags

  6. #6
    Forum Contributor
    Join Date
    08-09-2012
    Location
    British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: msgbox without stop the macro

    Why not state what you are trying to do and what the problem is ?

    From your post at VBAexpress, it's hard to imagine a solution to what you ask here actually fixing your problem.

  7. #7
    Registered User
    Join Date
    04-01-2015
    Location
    israel
    MS-Off Ver
    2007
    Posts
    15

    Re: msgbox without stop the macro

    I WROTE a macro and its work ok , i need only to print the result of the macro , i tried to print the results in a sheet cells , for example
    cells(n1,3).value=arr(n1) and the problem that the value that printed in the cell is printed in delay and i miss data , Therefore i ask for a way to print the result of the macro "arr(n1)" in other place to git rid of the delay with print the data? and when i tried the msgbox (msgbox arr(n1) ) the data updated without delay, and i search soluation?

+ 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] Stop code running through Sub when MsgBox is displayed
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2013, 07:43 AM
  2. VBA IF Statement to return MsgBox if True and Stop Macro
    By Forge463 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2012, 01:56 PM
  3. [SOLVED] Call another Macro or Stop Macro Based on MsgBox Yes or No
    By GStone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2012, 05:59 PM
  4. Excel 2007 : Macro to stop a msgbox
    By cornish5 in forum Excel General
    Replies: 1
    Last Post: 05-04-2011, 08:10 AM
  5. Adding msgbox to stop error
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2009, 10:31 AM

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