+ Reply to Thread
Results 1 to 2 of 2

How to simultaneously scroll userform labels with listbox?

  1. #1
    Registered User
    Join Date
    04-21-2015
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    12

    How to simultaneously scroll userform labels with listbox?

    I have listbox that adjust to screen resolution of user computer. Since it is also auto-fit it's columns in some cases scrollbar appear so user could view all columns in listbox!

    Since I didn't want to use column header option of listbox I've put labels above listbox of each column.

    Of course in case of scrollbar appearance labels remains static and doesn't move along with listbox causing a confusion.

    How to move labels with the listbox in case scrollbar appear? Or how to move two listbox simultaneously in case of scrollbar appearance?

    I've tried using two listbox where one is showing just 1st row (header) in style I prefer, and second as body, and tried with following code to "attach" them one to another:

    Please Login or Register  to view this content.
    But with no luck! Listbox2 doesn't move along with ListBox1!

    *EDIT:

    Sorry, I wasn't aware I'm breaking the rules! Here is link to same thread in another forum:

    https://www.mrexcel.com/forum/excel-...ml#post5038213
    Last edited by freespirityu; 03-27-2018 at 10:04 AM.

  2. #2
    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,460

    Re: How to simultaneously scroll userform labels with listbox?

    Rule 08: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    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).

    No further help to be offered, please, until the OP has complied with this request.
    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. VBA to have certain sheets scroll simultaneously
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-18-2017, 10:41 PM
  2. [SOLVED] Userform labels to repeat/autofill exactly into other labels on the same userform
    By indub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2015, 02:18 PM
  3. How do I get the scroll distance of a userform listbox scroll bar...
    By Rob Frankham in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-31-2014, 04:23 PM
  4. Transfer Data From One Userform Listbox to Another Userform Listbox with 11 columns
    By sparkoft in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-18-2013, 10:54 AM
  5. Using Listbox selection to show specific labels and texboxes on userform
    By jlwiii34 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2013, 03:17 PM
  6. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  7. Scroll Multiple Sheets to the Same Position Simultaneously
    By smlaff01 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-20-2007, 02:28 PM

Tags for this Thread

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