+ Reply to Thread
Results 1 to 4 of 4

trasfer data into a userform

  1. #1
    Forum Contributor
    Join Date
    02-07-2011
    Location
    netherlands
    MS-Off Ver
    Excel 2003
    Posts
    128

    trasfer data into a userform

    I have a problem with obaining the data into the userform.

    There is 1 macro and 1 userform.

    The marco's event is when a specific cell is double clicked in a screen.

    In this macro there will be data gathered and stored in variable's.

    the next step is that the macro opens the userform and the gathered data should be added into the userform.


    i have tried adding the information by macro which doesnt work ofcourse.
    Then i tried it by using the "Userform_initialize" event.

    This works but i cannot collect the data from the macro variable's.

    Anyone can tell me how to declare these variables so they are comminucating?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: trasfer data into a userform

    To use the variables from another macro they need to be declared as Public.

    Can you attach an example workbook, there's probably a simpler way to do this
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    02-07-2011
    Location
    netherlands
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: trasfer data into a userform

    The excel is dutch based so i used dutch names.

    I only used "Rekening" as excample that will be filled in the userform.

    The idea of the userform is to double click the line that needs to be changed and with the userform you will change its data.
    this way the user cannot destroy the database field.

    When i change dim statement with public it gives an error.

  4. #4
    Forum Contributor
    Join Date
    02-07-2011
    Location
    netherlands
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: trasfer data into a userform

    attachment*
    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)

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