+ Reply to Thread
Results 1 to 3 of 3

VBA code not executing upon showing a secondary userform

  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    Central Florida, USA
    MS-Off Ver
    2013
    Posts
    2

    VBA code not executing upon showing a secondary userform

    My directive is to use a button called "Legend" on a userform called "PlatformData" to open another userform called "PlatformLegend". Both userforms are for viewing existing data only, I don't wish to hide the first userform, and as far as I am aware, it doesn't matter if is it modeless or modal because I don't need to perform any actions while either userform is being viewed other than the ability to unload them. My issue is that I am able to get the second userform opened and viewed, however, none of the initialization code is executing (not even a simple MsgBox function), and is showing just the bare userform (all of my controls are dynamic and therefore must be added during run-time). What am I doing wrong here?

    Here is the relevant code for the first userform called "PlatformData" that has the "Legend" button to be used to view the second userform:

    Please Login or Register  to view this content.
    Here is the relevant code for the second userform called "PlatformLegend":

    Please Login or Register  to view this content.
    On an added note, I have also tried changing the Userform2 event from Initialize to Activate, but that yielded the same results.

    Any feedback will be greatly appreciated.


    Update: Solution offered. http://www.ozgrid.com/forum/showthre...d=1#post738484
    Last edited by ZilchSr; 02-16-2015 at 08:05 PM. Reason: Cross-post solution offered.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: VBA code not executing upon showing a secondary userform

    http://www.ozgrid.com/forum/showthread.php?t=193208

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  3. #3
    Registered User
    Join Date
    02-05-2015
    Location
    Central Florida, USA
    MS-Off Ver
    2013
    Posts
    2

    Re: VBA code not executing upon showing a secondary userform

    Original post edited to show solution. My apologies.

+ 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] Showing UserForm to Indicate Progress, Macro Doesn't Run Until I Exit UserForm
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2014, 07:00 PM
  2. [SOLVED] Disable showing sheet change while executing VBA code
    By Manish84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2013, 11:06 AM
  3. Showing Run-time error "1004" when executing code with thousans of data
    By nigel_12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2013, 07:03 AM
  4. Secondary Data Axis Not Showing
    By mycon73 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-17-2011, 04:23 PM
  5. [SOLVED] do anybody have a sample code for executing excel macro from vb code?<eom>
    By B Deepak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2005, 05:05 AM

Tags for this Thread

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