+ Reply to Thread
Results 1 to 5 of 5

referring to another workbook in a macro

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    Poland
    MS-Off Ver
    Excel 2003
    Posts
    5

    referring to another workbook in a macro

    Hello,

    I have a problem with obtaining data from another workbook in my macro. I'm using the code like below (fragment) and it works perfectly only if I manually open workbook amplico.xls before running the macro. If I don't it brings me an error "run time error 424 - object required". How can I make my macro working without opening amplico.xls before?

    Please Login or Register  to view this content.
    regards,
    Last edited by KOSGH; 05-10-2014 at 06:19 PM.

  2. #2
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: referring to another workbook in a macro

    KOSGH, i have perfect solution for you, but first you need to edit your post as mr. Foris1991 says

  3. #3
    Registered User
    Join Date
    03-20-2014
    Location
    Poland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: referring to another workbook in a macro

    is there anyone more helpful please?

  4. #4
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: referring to another workbook in a macro

    here is the solution
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-20-2014
    Location
    Poland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: referring to another workbook in a macro

    thanks lancer102rus

+ 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. [SOLVED] referring to workbook
    By Fabrizio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2006, 12:55 PM
  2. RE: referring to workbook
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:40 PM
  3. RE: referring to workbook
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  4. RE: referring to workbook
    By comparini3000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  5. RE: referring to workbook
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:32 PM

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