+ Reply to Thread
Results 1 to 7 of 7

How to add a floating text box in 2007

  1. #1
    Registered User
    Join Date
    05-29-2013
    Location
    Murfreesboro, TN
    MS-Off Ver
    Excel 2007
    Posts
    11

    How to add a floating text box in 2007

    I've learned so much from this forum. Thanks guys. Well here's a problem that I found some answers and codes, but when I pasted the codes to my file, there's nothing happened.

    So, I want to have a text box with several buttons on it shown in the spreadsheet, and when I scroll up and down, and add/delete data, the box should always be visible. It's something like the side navigation bar of this forum. I followed RoyUK's method from this thread: http://www.excelforum.com/excel-gene...-text-box.html, and pasted the following code to module 1, while nothing happened.

    Please Login or Register  to view this content.
    I don't know where did I do wrong, and I don't have any VBA knowledge.

    I appreciate for the help! Thanks so much!
    Last edited by Leith Ross; 06-24-2013 at 03:07 PM. Reason: Added Code Tags

  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 add a floating text box in 2007

    Hi,
    the code must be in the appropriate worksheet module, see example: FloatingTxt.xlsm
    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

  3. #3
    Registered User
    Join Date
    05-29-2013
    Location
    Murfreesboro, TN
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to add a floating text box in 2007

    Thanks tehneXus for the reply and the example. While when I scroll down the sheet in your example, the text box still moved up along with the cells. Anything else did I miss?

    Last edited by Leith Ross; 06-24-2013 at 03:07 PM. Reason: Removed Quote

  4. #4
    Registered User
    Join Date
    05-29-2013
    Location
    Murfreesboro, TN
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to add a floating text box in 2007

    It worked. While I have to click a cell to have the text box appear. Is it possible to make the text box stay there all the time?

    Quote Originally Posted by tehneXus View Post
    Hi,
    the code must be in the appropriate worksheet module, see example: Attachment 245324

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to add a floating text box in 2007

    The code isn't designed to work when you scroll.
    If posting code please use code tags, see here.

  6. #6
    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 add a floating text box in 2007

    afaik there is no event which will notice you scrolling, as suggested in the other thread use a userform:FloatingTxt.xlsm

  7. #7
    Registered User
    Join Date
    05-29-2013
    Location
    Murfreesboro, TN
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How to add a floating text box in 2007

    Thanks guys. This is good enough for me!

  8. #8
    Registered User
    Join Date
    06-24-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to add a floating text box in 2007

    Thank you this helped me as 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