+ Reply to Thread
Results 1 to 6 of 6

formula via VBA within another file on the network

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    formula via VBA within another file on the network

    Hi.

    I have a file name like (network.xlsm) on the network where I work.


    and I'm using another file (local.xls), I would like to use VBA to put a formula in workbook (local.xls) guide ("Sheet1"). [B1: Q300]


    Within the workbook file (local.xls) guide ("Sheet1"). [B1: Q300]
    From B1 to Q300
    = [network.xlsx] Rede_A! B1
    = [network.xlsx] Rede_A! B2
    = [network.xlsx] Rede_A! B3
    = [network.xlsx] Rede_A! B4
    = [network.xlsx] Rede_A! B5

    Corss-Post
    http://www.mrexcel.com/forum/excel-q...e-network.html


    thank you!
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: formula via VBA within another file on the network

    Why don't you use the PasteSpecial-->Paste Link feature?
    However, with the help of VBA you may use this code after opening both workbooks and activating the Sheet1 of local.xls...
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: formula via VBA within another file on the network

    Hi.
    your code is opening the dialog box every time you inserted the formula!

  4. #4
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: formula via VBA within another file on the network

    Quote Originally Posted by marreco View Post
    Hi.
    your code is opening the dialog box every time you inserted the formula!
    Provide the path to network.xlsm in code:

    'Z:\\SharedFolder\[network.xlsm]Rede_A' or as it is on your network and enclose in single quotes:

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: formula via VBA within another file on the network

    Hi
    how do I get the value and not the formula?
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: formula via VBA within another file on the network

    Please Login or Register  to view this content.
    Last edited by hafizimran; 02-23-2013 at 06:29 AM.

+ 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