+ Reply to Thread
Results 1 to 3 of 3

make Named Range & EVALUTE() calculate while the UserForm is in progress

  1. #1
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    make Named Range & EVALUTE() calculate while the UserForm is in progress

    UserForm1 gets data from User and creates Named Ranges (XYZ_1_ABC, XYZ_2_ABC, etc). XYZ_1_ABC = the user entered data, for example BLUE, XYZ_2_ABC = RED

    These Named Ranges are used to populate numerous cells by another Named Range GetXYZName
    GetXYZName uses the EVALUATE function
    EVALUATE("XYZ_"&INDIRECT("RC2",0)&"_ABC")

    RC2 contains the number to complete the NamedRange.
    If D7 =GetXYZName & B7 = 2 then D7 will display RED

    UserForm1 initiates Userform2

    Userform2 gets data from User and creates a New XL file by copying a worksheet to a new file.

    The copied worksheet can’t populate correctly if the cells containing = GetXYZName don’t calculate (populate RED or BLUE)

    But NR GetXYZName using EVALUATE() doesn’t calculate until UserForm2 completes.

    Adding Application.Calculate won’t cause the GetXYZName / EVALUATE() to calculate while the UserForm is in progress.

    Is there any way to force the GetXYZName / EVALUATE() to calculate while the UserForm is in progress?


    I do not have any application or sheet calculation turned off.

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

    Re: make Named Range & EVALUTE() calculate while the UserForm is in progress

    Hi, I've red and reread your question and... well, honestly, I can't really make heads or tails off it.
    The only suggestion I can offer is that when one userform is active it will remain on the foreground unless you set modal to False then you can click around it and do other things, the same with userform 2 and now I think I might have lost you and given you a similar story that will not make heads or tails sense to you.

    If vbModal is set to True the userform takes lead and nothing else can be done unless you hide it and initiate another routine that has to return to that userform show it again and the close it, if you don't do this it will stay in memory and disrupt things.
    I suggest you look it up in Google, search text something like: vba excel processing two userforms at the same time
    Happy coding
    ---
    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

  3. #3
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: make Named Range & EVALUTE() calculate while the UserForm is in progress

    I figured it out.

    I had set the WORKSHEET to EnableCalculation = False at workbook open, so Application.Calculate wasn't calculating that sheet.

    So it has nothing to do with userforms or the Excel 4 EVALUATE() function... Just a lame-brained programmer!

+ 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] make UDF calculate while the UserForm is in progress
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2018, 12:15 PM
  2. Add items to named range from userform
    By wpryan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2015, 07:19 AM
  3. make a named range from cell value?
    By tsiguy96 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2014, 02:03 PM
  4. Replies: 1
    Last Post: 08-06-2014, 10:29 PM
  5. [SOLVED] Calculate the Active Named Range
    By Joy C in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2014, 12:10 PM
  6. Replies: 1
    Last Post: 02-27-2013, 12:00 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