+ Reply to Thread
Results 1 to 9 of 9

While i double click the value from list box. I populate some datas from another sheet

  1. #1
    Registered User
    Join Date
    05-03-2011
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2016
    Posts
    98

    While i double click the value from list box. I populate some datas from another sheet

    I Attached my file please check...


    In this allotment page.... listbox1 is have "date" 1 to 31... if I double click any dates. eg. 3


    that time "Green colour" Background area automatically populate data from " Duty chart hk" & "duty chart wa" page similar 3 day column details.....


    Please help Me
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: While i double click the value from list box. I populate some datas from another sheet

    Hi rukman

    To help us better understand please add a worksheet to your workbook with expected results and please tell us why.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    05-03-2011
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: While i double click the value from list box. I populate some datas from another sheet

    I already attached a sample file. please check

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: While i double click the value from list box. I populate some datas from another sheet

    You do not need vba; use formulas instead:

    Named Ranges:
    DutyChartHK ='DUTY CHART HK'!$A$1:$AG$11
    DutyChartWA ='DUTY CHART WA'!$A$1:$AG$12
    HK ='DUTY CHART HK'!$AI$1:$AJ$11
    SelectedDay =ALLOTMENT!$H$4..........<----- Linked cell for the listbox
    WA ='DUTY CHART WA'!$AI$1:$AJ$12


    Typical formula in C4 and down:
    Please Login or Register  to view this content.
    D4:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    05-03-2011
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: While i double click the value from list box. I populate some datas from another sheet

    Thanks for answer

    Ya its working... but small problem in there. see that... neuro ward had 2 rows. But only one name only shown....

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,337

    Re: While i double click the value from list box. I populate some datas from another sheet

    If you want VBA. DoubleClick a number in ListBox.
    I left the formulas in Name Column but that can also be added to code.
    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.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: While i double click the value from list box. I populate some datas from another sheet

    column C:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-03-2011
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: While i double click the value from list box. I populate some datas from another sheet

    Thanks for the reply guru....


    But again one problem.... WA Generated correctly. But HK Side Not. Because Neuro ward had only one HK. But its generate 2. Center Core Had one HK. But its not Populate the person.

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: While i double click the value from list box. I populate some datas from another sheet

    c4=IFERROR(INDEX(DutyChartWA,MATCH(IF(T$1=0,$B3,T$1),INDEX(DutyChartWA,,2),0)+(1*(T$1=0)),MATCH(SelectedDay,INDEX(DutyChartWA,1,),0)),"")
    d4=IFERROR(VLOOKUP(T$2,WA,2),"")
    e4=IFERROR(INDEX(DutyChartHK,MATCH(IF(T$1=0,$B3,T$1),INDEX(DutyChartHK,,2),0)+(1*(T$1=0)),MATCH(SelectedDay,INDEX(DutyChartHK,1,),0)),"")
    f4=IFERROR(VLOOKUP(T$4,HK,2),"")
    Attached Files Attached Files
    Last edited by protonLeah; 09-11-2017 at 10:33 PM.

+ 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] Open Drop Down List On Double Click
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-04-2015, 05:05 AM
  2. Double click cell - copy data to new sheet - create a list from double clicking
    By kakky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2015, 11:14 PM
  3. [SOLVED] ListBox Double Click () selection from another worksheet and populate data in text box
    By imzhakmaya in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 03:49 AM
  4. Changing cell properties with double click, then revert with another double click
    By mweber2525 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-01-2014, 01:40 PM
  5. Copy double-clicked cell to next empty row in different sheet with each double-click
    By erhathaway in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2013, 12:06 AM
  6. [SOLVED] Double click from List Box and populate data into another cell
    By shaneg1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2013, 04:16 AM
  7. Populate Excel Userform with Sheet names with double click to open the sheet ??
    By Shacker in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-08-2013, 03:54 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