+ Reply to Thread
Results 1 to 2 of 2

How to Show record from Sheet2 not Sheet 1 in the UserForm ListBox1.

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    89

    How to Show record from Sheet2 not Sheet 1 in the UserForm ListBox1.

    Hello,

    I have got a UserForm. In the UserForm I have got a ListBox1 to catch Data from my WorkSheet by using enrollment number and display it on the Userform ListBox1.

    The problem is that When I try to display the Data in the UserForm ListBox1. It shows me Data from my Sheet1 (name"Main") But I want to display

    Only Data from Sheet2 (name"Payment Records")...I do not want to display Data from Sheet1 ...I just need to catch Data only from Sheet2 (name "Payment Records")

    I have used Sheet2 "Payment Records" in my code but I could not understand where is the problem.

    Note: My UserForm icon is on my Sheet1.....From Sheet1 I open my UserForm...But I think this should not be the problem

    Here is my code.

    Please Login or Register  to view this content.

    Hope you guys will be understanding what I mean.

    I will be very thankful.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: How to Show record from Sheet2 not Sheet 1 in the UserForm ListBox1.

    try
    Please Login or Register  to view this content.
    otherwise the data come from ActiveSheet
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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