+ Reply to Thread
Results 1 to 4 of 4

specify worksheet in rowsource within a listbox

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    specify worksheet in rowsource within a listbox

    I have moved activex buttons to another sheet, and everything works fine, except the button for 'archiving clients'

    when i click the button to archive it doesn't list the name of clients. i'm assuming this is because i've moved the command buttons (and therefore code) to a sheet other than the one where the list is.

    i see rowsource is naming a range, but it's not specifying which sheet that range is from, its no longer the active worksheet.

    i've attached the spreadsheet because it's difficult to explain the problem.
    Attached Files Attached Files

  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: specify worksheet in rowsource within a listbox

    Hi,

    Rather than hard code the A1:C200 address (which is not sheet specific and the cause of your problem) in the RowSource property of the CaseSelectBox, first create a dynamic range name 'ClientList'

    Please Login or Register  to view this content.
    and enter the name 'ClientList in the RowSource property of the box.

    HTH
    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
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: specify worksheet in rowsource within a listbox

    sorry, what do you mean exactly by create a dynamic range?

    thanks

  4. #4
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: specify worksheet in rowsource within a listbox

    ok i sorted it, thanks it works well

+ 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