+ Reply to Thread
Results 1 to 5 of 5

Show a form next to the selected cell

  1. #1
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Show a form next to the selected cell

    Hi,

    I want to show a userform to display data related to the target cell value.

    I have got the code below and the form loads with values as required.
    Please Login or Register  to view this content.
    Is there a way to ensure that the form is displayed next to the selected cell.

    Thanks in advance.
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

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

    Re: Show a form next to the selected cell

    This will show the userform to the right and slightly above the selected cell.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Show a form next to the selected cell

    Copy and paste the below code in UserForm Initialize event.

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Show a form next to the selected cell

    THanks Norie and Sixthsense

    It worked, only slight issue is if I cell selected on the right corner then form still goes to the right and is not visible.

    I will try to put a if function to make it work.
    Last edited by saravnepali; 07-28-2020 at 06:13 AM.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Show a form next to the selected cell

    Quote Originally Posted by saravnepali View Post
    It worked, only slight issue is if I cell selected on the right corner then form still goes to the right and is not visible.
    Revised Sheet Change Event Code

    Please Login or Register  to view this content.
    Revised Userform Code

    Please Login or Register  to view this content.
    In the above code adjust the > 500 based on your need.

+ 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. click to show text in cell, retract when cell not selected
    By LMoir in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2016, 05:57 AM
  2. Forms in Excel - How do I link a cell to show me what was selected on an input form?
    By csalcido in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2013, 01:00 PM
  3. Replies: 2
    Last Post: 01-30-2013, 03:16 AM
  4. [SOLVED] Making a User form text entry box show when a checkbox is selected
    By delaneybob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2012, 07:24 PM
  5. Show comments next to selected cell
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2009, 07:17 AM
  6. Show Calendar When Cell is Selected
    By siamadu in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-26-2009, 02:12 PM
  7. [SOLVED] Is there a formula to show which cell is currently selected
    By Chris in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-08-2006, 10:40 AM

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