+ Reply to Thread
Results 1 to 2 of 2

Programmatically created form with name conflict

  1. #1
    Registered User
    Join Date
    07-11-2011
    Location
    Santa Catarina , Brazil
    MS-Off Ver
    Excel 2003
    Posts
    3

    Exclamation Programmatically created form with name conflict

    I'm creating in Excel VBA a form using code. The following code snippet presents a problem in which the form is somehow created with the name already correctly set and then afterwards, in the only place where I set the said variable, it raises an issue saying that there is a form with that name (the variable in case).

    Here is my code:
    Please Login or Register  to view this content.
    To be clear, the error is that when it reaches the line:

    Please Login or Register  to view this content.
    Somehow it already creates a form with name that's set after at the with statement:

    Please Login or Register  to view this content.
    And then, when it tries to run the with statement it breaks and says that a form with that name already exists.

    The whole thing is ran at another module as:

    Please Login or Register  to view this content.
    The form creation happens inside the ac.CreateCRUDView.

    How is it pulling the name variable before it's set and then trying to use it to make another form with the same name?

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Programmatically created form with name conflict

    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).
    Remember what the dormouse said
    Feed your head

+ 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. Creating form Programmatically in the module using vba-excel
    By vickyyar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2012, 08:36 AM
  2. Opening Built-In Date Form Dialog Box Programmatically
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2006, 08:25 AM
  3. Replies: 1
    Last Post: 09-01-2005, 04:05 PM
  4. Detect change in programmatically created checkboxes
    By TomJones322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2005, 07:21 PM
  5. [SOLVED] Data from Programmatically created Excel into SQL Server
    By Raj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2005, 06:06 PM

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