+ Reply to Thread
Results 1 to 7 of 7

VBA code to create formulas referencing cells in another workbook

  1. #1
    Registered User
    Join Date
    09-11-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2002, 2003,2007
    Posts
    39

    VBA code to create formulas referencing cells in another workbook

    I have attached example sheets, but the actual data set could have up to 50 data sets (not just the 6 presented).

    In my code I insert the code I want into the cells I want in the Table Format.xls. But it seems like there's a way to make this much cleaner.

    Please Login or Register  to view this content.

    Any assistance would be appreciated

    J
    Attached Files Attached Files
    Last edited by new.vbacoder; 11-09-2010 at 03:09 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: VBA code to create formulas referencing cells in another workbook

    Hi

    Do you really need to have this returned by formulas, or could you just paste the relevant output result directly into table format.xls?

    rylo

  3. #3
    Registered User
    Join Date
    09-11-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2002, 2003,2007
    Posts
    39

    Re: VBA code to create formulas referencing cells in another workbook

    Quote Originally Posted by rylo View Post
    Hi

    Do you really need to have this returned by formulas, or could you just paste the relevant output result directly into table format.xls?

    rylo
    I guess I could just paste the relevant data directly into the table.

    J

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: VBA code to create formulas referencing cells in another workbook

    Hi

    Here goes.
    Please Login or Register  to view this content.
    rylo

  5. #5
    Registered User
    Join Date
    09-11-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2002, 2003,2007
    Posts
    39

    Re: VBA code to create formulas referencing cells in another workbook

    Quote Originally Posted by rylo View Post
    Hi

    Here goes.

    rylo
    I made a few modifications to fit into the actual worksheet, but what you game me worked splendidly.

    Thanks for your help.

    Please Login or Register  to view this content.

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: VBA code to create formulas referencing cells in another workbook

    Alternative:

    Please Login or Register  to view this content.



  7. #7
    Registered User
    Join Date
    09-11-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2002, 2003,2007
    Posts
    39

    Re: VBA code to create formulas referencing cells in another workbook

    Quote Originally Posted by snb View Post
    Alternative:
    Thanks for that. I'll try it out at a later time, as I got the first code to work.

    J

+ 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