Consulting

Results 1 to 5 of 5

Thread: Break each external links in a cell and replace with the current value of each link

  1. #1

    Question Break each external links in a cell and replace with the current value of each link

    Hi all,

    I am new to this forum but I find it very useful. Thank everybody for contribution!

    I have a problem I cannot tackle - I have to break links in cell but after that I need to have all amounts presented in cell.

    An example:

    In cell A1 I have: = '\\LINK\ [FILE NAMES.xlsb] SheetName'!$C$7 + '\\LINK\ [FILE NAMES.xlsb] SheetName'!$C$8 + '\\LINK\ [FILE NAMES.xlsb] SheetName'!$C$9.
    I need a macro that would show me (instead of links): = 5+10+27.

    So basically it is a break link function but conducted on the separate links. Is that possible?

    Kind regards,
    Tom

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This is a bit long-winded but works. In the formula bar, select each of the separate portions individually ('\\LINK\ [FILE NAMES.xlsb] SheetName'!$C$7) such as and hit F9, this will evaluate that part. Move onto the next part, repeat, and so on, until done.
    ____________________________________________
    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

  3. #3
    Hi, thanks it works - it would be good if there are only few links - but I have dozens of them.. So maybe there is a macro for this?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I can give you a macro, but is the conjoin charcater always + (no - or *)? Where is the data, column, rows?
    ____________________________________________
    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

  5. #5
    hmm there might be + / - or *.. but still with the code from you I could create a few Cases to include "-" and "*"....

Posting Permissions

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