+ Reply to Thread
Results 1 to 5 of 5

Prefilled userform

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Prefilled userform

    Hi,

    I have a UserForm with only one textbox that when open I want to return a value from a cell in my workbook.
    Is this possible?

    Regards
    Øystein

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Prefilled userform

    Hello
    Using the User Form 'Initialize' Event:

    Please Login or Register  to view this content.
    Amend the names/ranges to your requirements.

    Hope this helps.
    DBY

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Prefilled userform

    DBY,

    Thanks for youre reply, but the userform still comes up blank.
    What do you mean by "User Form 'Initialize' Event"?

    Regards
    Øystein

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Prefilled userform

    In the VBA Project right click your User Form and select View Code. In the right hand (Procedure) drop down box select 'Initialize'. Insert the code so it looks like below:

    Please Login or Register  to view this content.
    The code should run everytime the Form is opened.

    DBY

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Prefilled userform

    DBY,

    Thank you Worked perfect.

    Regards
    Øystein

+ 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