Consulting

Results 1 to 4 of 4

Thread: Call a form in a other workbook

  1. #1
    VBAX Regular
    Joined
    Aug 2007
    Posts
    10
    Location

    Call a form in a other workbook

    hallo,

    I have to copy some data from 1 workbook to a other workbook. That works fine.

    But how can you activate a form in the other workbook?

    I also have to copy a value in to a textbox in the workbook. How do you fill in that textbox in the other workbook?

    thus some one know how you can do that???
    best regards,


    Sls

  2. #2
    Not sure how to do it via menu,,
    but you can create a file called personal.xls (like Normal.dot in word) put the macro/form in it.
    then save it in the path

    'C:\Program Files\Microsoft Office\Office\XLStart\Personal.xls'

    This will create a Global macro, available in all workbooks.

    i might add this is for 2000 (which makes me behind the times)

    I am guessing you also want to access the data without actually opening the other workbook, well im not sure of that, but i know it can be done.


    cheers
    Last edited by daniel_d_n_r; 08-05-2007 at 04:22 AM.

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Create a little macro in the other workbook that shows the form, then use Application.Run to run that macro.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by daniel_d_n_r
    i might add this is for 2000 (which makes me behind the times)
    Maybe, but it is very debatable that either XP or 2003 warranted the outlay to upgrade.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •