+ Reply to Thread
Results 1 to 9 of 9

updating data in column price based on textbox doesn't work

  1. #1
    Forum Contributor
    Join Date
    04-11-2021
    Location
    Tripoli
    MS-Off Ver
    Excel 2016 ,windows 10 64bit
    Posts
    345

    updating data in column price based on textbox doesn't work

    hi professional
    I need finding solution to my problem .I designed simple userform to test how works to implement for my project , but I'm surprised it doesn't work in column C
    it should update after fill in textbox3 . it just work for column A,B when changes .
    HTML Code: 
    by the way I issued this post in this forum https://www.mrexcel.com/board/thread...t-all.1184312/
    any help to find where is the problem ,please?
    Attached Files Attached Files
    Last edited by KalilMe; 10-12-2021 at 05:40 AM.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: updating data in column price based on textbox doesn't work

    Your Combobox1_change event kicks in when writing to worksheet so your TB's are set back to default, making any changes undone.

    In a Userform there's no EnableEvents property so we create our own one.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    04-11-2021
    Location
    Tripoli
    MS-Off Ver
    Excel 2016 ,windows 10 64bit
    Posts
    345

    Re: updating data in column price based on textbox doesn't work

    excellent ! finally it works, but why this case occures with me . I have ever used this code in many cases and I don't face like this problem . why happens this now ?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: updating data in column price based on textbox doesn't work

    KalilMe,

    Just change Initialize event to
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-11-2021
    Location
    Tripoli
    MS-Off Ver
    Excel 2016 ,windows 10 64bit
    Posts
    345

    Re: updating data in column price based on textbox doesn't work

    @jindon perfect ! that's work excellently . just question about this
    HTML Code: 
    actually I forgot put it , and even that works. does this missed line cause problem ?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: updating data in column price based on textbox doesn't work

    If you manually delete RowSource from the property window, it is not needed.

  7. #7
    Forum Contributor
    Join Date
    04-11-2021
    Location
    Tripoli
    MS-Off Ver
    Excel 2016 ,windows 10 64bit
    Posts
    345

    Re: updating data in column price based on textbox doesn't work

    then I should depends on it instead of do that manually .
    this problem caused me headache for two days .
    thanks very much for solve my problem.
    have a good day !

  8. #8
    Forum Contributor
    Join Date
    04-11-2021
    Location
    Tripoli
    MS-Off Ver
    Excel 2016 ,windows 10 64bit
    Posts
    345

    Re: updating data in column price based on textbox doesn't work

    @bakerman thanks for your solution, but I see the best answer is for mr.jindon

  9. #9
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: updating data in column price based on textbox doesn't work

    solve all your headaches and stop using rowsource - if you do not believe me then read-up on all its downfalls in the link below.
    also there is no need for search routines interacting with the sheet - in your case there is a direct link between the combobox.listindex and the sheet row.
    less interaction with the sheet using data placed in memory = speed, using structured tables also enhances data referencing.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

+ 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] Vba updating cells doesn't work if there is #n/a
    By irkuhs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2020, 02:08 AM
  2. [SOLVED] macro for userform with one textbox and two optionbutton doesn't work
    By MaartenRo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2020, 06:03 AM
  3. [SOLVED] Resize textbox to fit text (Excel's built-in option doesn't work in this case)
    By JayUSA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2018, 10:20 PM
  4. Updating Other Textbox based on entry in first textbox
    By yoursamrit2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2015, 03:32 AM
  5. Updating broken links doesn't work - Excel 2013
    By kartoshka in forum Excel General
    Replies: 0
    Last Post: 10-25-2013, 05:11 AM
  6. Updating a pivot table with VBA from Drop down list (1st item doesn't work)
    By tray262 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2013, 02:32 PM
  7. Screen updating doesn't work !
    By Jean-Gab in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-02-2013, 10:04 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