+ Reply to Thread
Results 1 to 4 of 4

Userform to display the value of another sheet

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

    Userform to display the value of another sheet

    Hi All,

    I want to have a userform display value of range A1 from the active sheet which is in another workbook.

    And, the name of the workbook might change (but it will always be the Range A1 of the active sheet that the value has to be displayed) So, essentially it has to display the value of range("A1") from the whichever sheet is active.

    Is there a way around for this.

    Thanks in advance for your help.
    Attached Files Attached Files
    Last edited by saravnepali; 07-30-2020 at 07:44 AM.
    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 Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Userform to display the value of another sheet

    You could try assigning this to an event or commandbutton on your userform:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Userform to display the value of another sheet

    As Bernie mentions you can add an object to your userform that will capture workbook and sheet activation.

    Add this code to your example userform
    Please Login or Register  to view this content.
    And add this command to you current userform Initialize event.
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

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

    Re: Userform to display the value of another sheet

    Thanks Andypope and Bernie Deitrick

    It helps me for what I want.

    It also does opens new prospect for me to work with application level events which I wasn't aware previously. I will have to take it slowly and see how it goes and what it has on offer.

+ 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. Display selected Sheet Tab from Userform Listbox...
    By Chazrab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-25-2019, 10:00 AM
  2. Userform to display last record on a sheet
    By adebayo in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-10-2013, 02:47 PM
  3. How to search record from sheet & display it to UserForm.
    By Mr82 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-26-2013, 05:09 PM
  4. Search and Display in another sheet Using VBA and userform
    By Simar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-22-2013, 03:35 PM
  5. How to display a sheet with the help of a button in userform.
    By yeshwant_sur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2012, 02:13 AM
  6. Userform help, need to display result not sheet
    By mtech123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2011, 08:34 AM
  7. Display data on sheet (with formatting) to Userform
    By copythat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2011, 02:53 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