Solved

Keep Listbox at top of Scrolling Worksheet

Posted on 2011-03-13
4
707 Views
Last Modified: 2012-06-21
I have a worksheet with about 300 rows x 2 columns, A and B. I also have a listbox with information in Column C

How can I keep the listbox visible while I am scrolling the worksheet? Right now it scrolls with the worksheet and quickly cannot be seen. I want it to stay in the viewing area of the scrolling worksheet.
Here is an image of the basic sheet:
 Initial View
Here is another image of the worksheet half hidden during scrolling.
 View after scrolling
I want the ListBox to remain visible during the time the worksheet is scrolling. Any idea how to do this with VBA?

Thanks in advance.

Joe
0
Comment
Question by:borgtamer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 total points
ID: 35124725
This may be of use to you. Make the listbox into a textbox control on a form and set the Modal property of the form to false.


http://www.excelforum.com/excel-general/642265-floating-text-box.html
0
 
LVL 13

Expert Comment

by:Chris Raisin
ID: 35124732
I'm working on this Joe...Standby
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 35126050
Why make the listbox into a textbox? You can add a listbox to a userform just as easily.
0
 
LVL 18

Expert Comment

by:Jerry Miller
ID: 35127571
You're right rorya, you can simply use the listbox control on a form and it works just as well. I was following the example I found without thinking it through completely. The form will 'float' in the area you set it and not roll up as you scroll down.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question