+ Reply to Thread
Results 1 to 11 of 11

formula disappears after being displayed in userform listbox

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    zastron,south africa
    MS-Off Ver
    Excel 2010
    Posts
    48

    formula disappears after being displayed in userform listbox

    Hi all
    In cell g22 and cell i3 I have 2 basic formulas, problem is, everytime the formula is activated and changed in the listbox, the value remains in both cells, but the formula dissepears. I have scanned through my code and there is no .value assigned to either listboxes. In both cases I tested using the rowsource property and using code. Please can someone help?
    Creating POS

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: formula disappears after being displayed in userform listbox

    It is not clear what you are doing exactly but if you have linked a listbox to a cell the formula will be overwritten by the value and you may not avoid that unless you unlink them.

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    zastron,south africa
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: formula disappears after being displayed in userform listbox

    Yes, that's exactly my problem, how do I unlink them? It use to work just fine, its really baffeling me.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: formula disappears after being displayed in userform listbox

    Clear the Rowsource and Controlsource properties of the control.

  5. #5
    Registered User
    Join Date
    09-11-2013
    Location
    zastron,south africa
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: formula disappears after being displayed in userform listbox

    I have tried that, problem is, it also does the same when I enter code under userform initialize that links the cell to the listbox, tried a textbox also and same result. After the formula is activated, the result remains but not the formula.

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: formula disappears after being displayed in userform listbox

    Naturally the effect is the same. Do not link the control to the cell. Rather populate both in your code using the Value (or Text) properties instead.

  7. #7
    Registered User
    Join Date
    09-11-2013
    Location
    zastron,south africa
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: formula disappears after being displayed in userform listbox

    Like this?
    Please Login or Register  to view this content.

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: formula disappears after being displayed in userform listbox

    I do not know - I can not see your form. I do not understand why you use a listbox for one value.

  9. #9
    Registered User
    Join Date
    09-11-2013
    Location
    zastron,south africa
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: formula disappears after being displayed in userform listbox

    Its like a calculator screen, but after the first formula, the listbox only shows the value and won't add anything else.

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: formula disappears after being displayed in userform listbox

    If you can not provide a workbook or all of the code I cannot know what is happening nor why.

  11. #11
    Registered User
    Join Date
    09-11-2013
    Location
    zastron,south africa
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: formula disappears after being displayed in userform listbox

    So I removed the textbox and made it a listbox, problem solved

+ 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. Listbox disappears from Sheet
    By biznez1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2013, 03:31 PM
  2. Transfer Data From One Userform Listbox to Another Userform Listbox with 11 columns
    By sparkoft in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-18-2013, 10:54 AM
  3. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  4. Replies: 1
    Last Post: 03-24-2012, 12:46 PM
  5. [SOLVED] problem userform disappears
    By Pierre via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-23-2005, 11: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