+ Reply to Thread
Results 1 to 2 of 2

Problem with textbox updating when running directly but not from previous box

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    44

    Problem with textbox updating when running directly but not from previous box

    Hi all,

    I am stumped, hope someone can help me.

    I have a userform1 that pop's up and you enter some information in TextBox4. The value from TextBox4 will be copied in cell ("AI18"), if the text has met a specific criteria which is calculated in ("AJ20") an additional userform2 will open where you add more info into TextBox15 and this will then be copied in an adjacent cell i.e. ("AJ18").

    here is the code for TextBox4from userform1

    Please Login or Register  to view this content.
    this is the code for TextBox15 from userform2

    Please Login or Register  to view this content.
    Now, my problem that I have is, when I run userform1 and add the info in TextBox4 userform2 pops up, which is correct. but when I add the info to TextBox15 from userform2it does not copy the info to ("AJ18"). BUT when I run userform2 directly from VB Editor it works? what am I doing wrong

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Problem with textbox updating when running directly but not from previous box

    If AI18 is not the active cell, then this doesn't reference AJ18

    ActiveCell.Offset(0, 1) = over04eb411.TextBox15.Text
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] Dynamic Chart updating previous entries problem
    By ooom in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 04-25-2015, 03:07 AM
  2. input the value of a Combobox and a textbox to a TEXTBOX directly from a userform
    By Gordonhk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2013, 03:25 PM
  3. Running a Crystal Report directly from Excel
    By Smithsc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2010, 01:55 PM
  4. Pasting directly under previous data automatically
    By Topdrop18 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2010, 02:20 PM
  5. how to convert Lotus 123 to Excel directly and can running normal
    By Ham3dy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. [SOLVED] how to convert Lotus 123 to Excel directly and can running normal
    By Ham3dy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. how to convert Lotus 123 to Excel directly and can running normal
    By Ham3dy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2005, 05:05 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