+ Reply to Thread
Results 1 to 8 of 8

unbale to change a cells based on textbox value

  1. #1
    Forum Contributor
    Join Date
    02-14-2015
    Location
    Milan
    MS-Off Ver
    2013
    Posts
    110

    unbale to change a cells based on textbox value

    dear all ,

    I use the following code to find a textbox2.value (user form) in column B of the active sheet .

    once the value is find then I wll run a macro that updates the offset cells based on the various textboxes values I have in the userform .

    the problem is that the values in the various textboxes are correctly transferred to the activesheet and in the correct place , the only cell that is not copying is the one that I was looking for in textbox 2.....
    the line is not updating the cell is highlighted in red

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: unbale to change a cells based on textbox value

    Hello 9599lorenzo,

    The problem must be somewhere else in the code, since the syntax is correct. Please upload a copy of the workbook for review. Seeing all of the code should provide clue as to the problem.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    02-14-2015
    Location
    Milan
    MS-Off Ver
    2013
    Posts
    110

    Re: unbale to change a cells based on textbox value

    dear ross,

    tks so much for help.

    I have attchd a sample workbook .

    just click the button an a user from pop up ....

    what I need to do is insert a text in the textbox than hit find button and if value is find a msg box wll pop up .

    then I need to change the textbox value and hitting the button "replace" the changed textbox should be now
    copied in the previous found cell.

    hope is clear

    tks
    Lorenzo
    Attached Files Attached Files

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: unbale to change a cells based on textbox value

    The code you posted isn't in the workbook you attached and the userform in the workbook only has one textbox.
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor
    Join Date
    02-14-2015
    Location
    Milan
    MS-Off Ver
    2013
    Posts
    110

    Re: unbale to change a cells based on textbox value

    yes I just create a copy right now because the entire workbook is full of details macros etc etc and not easy to undertand ......if you wand I wll attch my original one....

  6. #6
    Forum Contributor
    Join Date
    02-14-2015
    Location
    Milan
    MS-Off Ver
    2013
    Posts
    110

    Re: unbale to change a cells based on textbox value

    ..here attch my real workbook.....

    press ctrl+Q and the userform wll pop up .
    then in the fieLd "MAWB" type something you want to search for in column B .
    then hit display and the userform wll capture all the row informations.
    after that if you modify the fields in the userform and then hit "CHANGE" everything is correctly transpose to the
    sheet except when you try to change the textbox2 (MAWB FILED) .BOOKING LIST test.xlsm

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: unbale to change a cells based on textbox value

    If you change what's in the MAWB field then the Find in the code for the Change button will fail so the code that writes the data back to the sheet will be skipped.

    Perhaps you should store the row for the current record somewhere and use that in the Change button code.

  8. #8
    Forum Contributor
    Join Date
    02-14-2015
    Location
    Milan
    MS-Off Ver
    2013
    Posts
    110

    Re: unbale to change a cells based on textbox value

    ok...tks ..any ideas on how to store the record?

    many tks

+ 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. i want to have a macro code change based on input from a textbox in a form
    By Jenkins27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2015, 07:24 PM
  2. Cell color change based on Textbox
    By Helgard25 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2014, 05:55 AM
  3. [SOLVED] Need to populate data in listbox based on textbox value change
    By Naveed Raza in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-20-2014, 07:10 AM
  4. change textbox color on subform based on condition on another form
    By rlsublime in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2014, 10:04 PM
  5. [SOLVED] Change label caption's font color based on value in another textbox
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-19-2013, 01:59 PM
  6. Change Cell Color based on Textbox
    By Jeffjr02 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 11:34 AM
  7. Change Userform Textbox based on GUI Cell Selection
    By canyon289 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-09-2011, 06:21 PM

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