+ Reply to Thread
Results 1 to 7 of 7

Floating Text Box / Image when you scroll

  1. #1
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Floating Text Box / Image when you scroll

    Hi

    i have a spreadsheet which has a cell which says notes, about column which has the time in, this column has been in the real working one formatted so just have to type it in so no need to change cell format or type :

    anyway the question i have is

    Can you make it so like a java script style menu in html it will follow you as you scroll down?

    and just for info the top row is frozen so that stays in place so would rather do it with code then freeze or split which i have tried and didn't work or look very pleasing
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Floating Text Box / Image when you scroll

    Your file was corrupted and not sure what your exact aim is here.

    If you want to show static info on floating box/window there are couple of ways.

    I prefer to use userform to show info and set it as vbModeless. So it will float and won't move with scroll.

    You can also use Camera tool to show info from range and reposition it on scroll. You can see Chip Pearson's site for how to detect scrolling in a worksheet window.
    http://www.cpearson.com/excel/DetectScroll.htm

  3. #3
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: Floating Text Box / Image when you scroll

    sorry try this version
    Attached Files Attached Files

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Floating Text Box / Image when you scroll

    Paste this into the UserForm:

    Please Login or Register  to view this content.


    Paste this into ThisWorkbook:

    Please Login or Register  to view this content.
    I save your workbook as .xlsb so as to reduce its size.
    Attached Files Attached Files

  5. #5
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: Floating Text Box / Image when you scroll

    cheers many thanks

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Floating Text Box / Image when you scroll

    You are welcome.

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Floating Text Box / Image when you scroll

    See sample attached.

    It's just simple userform using Label1 to show text. ActiveWindow is used to show Userform in same screen as Excel.

    In Workbook module.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. floating text box when scroll
    By NYBoy in forum Excel General
    Replies: 4
    Last Post: 05-18-2020, 09:30 AM
  2. Floating pictures that don't scroll with sheet
    By jebersohl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2017, 01:37 PM
  3. Inserting image into userform label, text behind image?!?!
    By spyrule in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-31-2016, 03:23 PM
  4. Adding scroll feature in an image that appears on a userform
    By adamstarr12 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2014, 02:08 PM
  5. VBA: Put text from excel to jpeg image by matching image name.
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 01:47 AM
  6. Change image using scroll bar
    By andrewmaroul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2012, 10:24 AM
  7. Scroll image across screen
    By Chard in forum Excel General
    Replies: 1
    Last Post: 09-22-2007, 03:11 PM

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