+ Reply to Thread
Results 1 to 3 of 3

Guide Line Required for Listbox

  1. #1
    Registered User
    Join Date
    02-15-2015
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    13

    Guide Line Required for Listbox

    Hi to everyone,
    Dear friends I am working on an excel vba project.i have done everything successfully but I am facing a problem.
    I have one sheet on excel(Attendance) , one userfom where I have one list box with three colums i.e No,ID,Employee Name , Disignation and one text box to put the no of absents.All the items on the list box are already available in the excel sheet.I mean I don’t want to select any item and copy them to sheet. I just want that when someone enter the no of absents in the text box,this no should appear on the excel sheet (Attendence) based on ID.For better understand I have attached a screen shot.Please guide me by any experience person.Thanks
    Attached Images Attached Images

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Guide Line Required for Listbox

    Presumably that's a typo since your UF shows January 2017 as the operative month yet you're pointing to a February column on the worksheet.
    You'll need to create two variables to identify the row and column you need.

    So the Row value will be the Column(2) value of your listbox selection and the column number will be the Salary month value from the date/calendar box on the UF.

    Then it should be a fairly trivial matter to find the ID value returned by Column(2) listbox in the sheet's column B, and similarly find the Date in Row 1 of the sheet and using those two coordinates add the absentee number to the sheet.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Guide Line Required for Listbox

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Required sub heading of products in listBox in userform
    By xlhelp7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2016, 07:40 AM
  2. [SOLVED] List of items in a userform listbox, object required error in code
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2015, 09:10 AM
  3. Complicated listbox code required...
    By RayJay01 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2013, 07:32 PM
  4. Idiots guide required
    By Dan Mackman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-26-2007, 02:34 PM
  5. Listbox data required
    By kuzniaj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2006, 01:34 PM
  6. help again, last line required
    By tom mcdonald in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2005, 09:29 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