+ Reply to Thread
Results 1 to 6 of 6

ListBox to write value to another sheet

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Onatrio
    MS-Off Ver
    Excel 2007
    Posts
    22

    ListBox to write value to another sheet

    Hi there.

    I have a list box on sheet1. The name of the second sheet is located on sheet1 in cell K2. K2 will be update often.

    Is it possible to have a list box write its value to the sheet named in K2 cell A7?

    So, when I link the ListBox to a cell and select an item, a number will be written there. I am trying to have that number written to the sheet named in K2 cell a7. Something like... (K2!A7) except K2 would be replaced with the text value that is in K2.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-10-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: ListBox to write value to another sheet

    Quote Originally Posted by triump View Post
    Hi there.

    I have a list box on sheet1. The name of the second sheet is located on sheet1 in cell K2. K2 will be update often.

    Is it possible to have a list box write its value to the sheet named in K2 cell A7?

    So, when I link the ListBox to a cell and select an item, a number will be written there. I am trying to have that number written to the sheet named in K2 cell a7. Something like... (K2!A7) except K2 would be replaced with the text value that is in K2.

    Thanks
    Hi triump!

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.


    That's good? Try this!

    greetings Pan314
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    Onatrio
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: ListBox to write value to another sheet

    Thank you for your quick reply.

    I am having an issue with the sheet. It seems to run fine but when I select SheetName1 it shows the correct number but then an error appears.

    Run-time error '9':
    Subscript out of range.

    Also... Is it possible to do this with a ComboBox?

    Thanks
    Triump

  4. #4
    Forum Contributor
    Join Date
    03-10-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: ListBox to write value to another sheet

    Quote Originally Posted by triump View Post
    Thank you for your quick reply.

    I am having an issue with the sheet. It seems to run fine but when I select SheetName1 it shows the correct number but then an error appears.

    Run-time error '9':
    Subscript out of range.

    Also... Is it possible to do this with a ComboBox?

    Thanks
    Triump

    It's interesting.
    It works perfectly for what I sent. At least with me here.
    Did you do any modification to it? If so send it fto me.

    Thanks

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    Onatrio
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: ListBox to write value to another sheet

    I didnt do anything to it. I just downloaded it a ran it.

    I am not sure if this approach will work though. It seems like the macro is set to run on a period. My sheet is very big and I am afraid it will slow it down.


  6. #6
    Forum Contributor
    Join Date
    03-10-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: ListBox to write value to another sheet

    Hi triump!

    The macro executes every second listbox value copying another sheet.
    It requires very little time.
    I do not have time to deal with it. I do not see why there is a mistake.
    If there is no other solution, you can start a new thread for the same subject, perhaps mentioning this macro as well.
    Perhaps there is a VBA pro who picks up the thread. Good luck.
    When you reboot the thread, please send me the link (a private message to be sent), because I'm curious what kind of solution will be.

+ 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] Write listbox value back to sheet
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-28-2014, 12:06 PM
  2. [SOLVED] Change ComboBox to ListBox To Write To Individual Sheets
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2012, 09:48 PM
  3. Read text file to ListBox and Delete rows in ListBox and re-write text file
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-29-2012, 09:42 AM
  4. Write Items from listbox to worksheet
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2011, 06:15 AM
  5. Write to Multi Column Listbox
    By caracadon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2010, 12:10 PM
  6. [SOLVED] Write a Listbox list to a dynamic range
    By blayne in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-29-2005, 01:40 PM
  7. Write Listbox selection to Multiple cells
    By eklarsen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2005, 04:07 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