Results 1 to 12 of 12

VBA Userforms Help

Threaded View

White_Path VBA Userforms Help 10-24-2011, 12:16 AM
royUK Re: VBA Userforms Help 10-24-2011, 01:47 AM
White_Path Re: VBA Userforms Help 10-24-2011, 10:39 AM
royUK Re: VBA Userforms Help 10-24-2011, 11:06 AM
kieranbop Re: VBA Userforms Help 10-24-2011, 11:14 AM
royUK Re: VBA Userforms Help 10-24-2011, 11:30 AM
White_Path Re: VBA Userforms Help 10-24-2011, 03:28 PM
royUK Re: VBA Userforms Help 10-25-2011, 02:07 AM
White_Path Re: VBA Userforms Help 10-25-2011, 10:45 AM
White_Path Re: VBA Userforms Help 10-25-2011, 11:55 AM
royUK Re: VBA Userforms Help 10-25-2011, 02:25 PM
White_Path Re: VBA Userforms Help 10-25-2011, 05:12 PM
  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    6

    VBA Userforms Help

    Program: Excel 2007

    Hello I am trying to do a lot of lines of coding & I have split them up into several userforums. How do I activate one userform if the first one does not match.

    Basically I have this line of code going over many times with the numbers changed:
    If TextBox1.Value = "A" And TextBox3.Value = "3" And TextBox5.Value = "4" And TextBox6.Value = "4" Then UserForm2.TextBox1.Value = (Sheets("Tristian Planet Income").Range("C4").Value + (Sheets("Tristian Planet Income").Range("E4").Value * (UserForm1.TextBox2.Value - 1))) * (1 + ((TextBox4.Value / 10) + (Sheets("Tristian Planet Income").Range("M5").Value) + (Sheets("Tristian Planet Income").Range("M11").Value)))
    You have 6 text-boxes with numbers you can put in but I can only go up with this line of code to the value of 3 & I need to go to the value of 6 so I made another userform, but I don't know how to tell the macro to go to the 2nd userform if the values for all the text-boxes is 4 & over.

    Let me know if I need to make anything more clear or if you have questions & thanks in advance for the help!
    Last edited by White_Path; 10-24-2011 at 10:38 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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