+ Reply to Thread
Results 1 to 4 of 4

How to Copy a string of links

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    How to Copy a string of links

    On spreadsheet1, across one row, there are five cells in a table that each link to a corresponding value in a separate spreadsheet.

    A1='PA - Collections'!$G$4
    B1='PA - Collections'!$H$4
    C1='PA - Collections'!$I$4
    D1='PA - Collections'!$J$4
    E1='PA - Collections'!$K$4

    The table repeats itself on Row1 (on spreadsheet1) for the next 5 columns but links to a new set of values on the separate spreadsheet:

    F1='PA - Collections'!$G$5
    G1='PA - Collections'!$H$5
    H1='PA - Collections'!$I$5
    I1='PA - Collections'!$J$5
    J1='PA - Collections'!$K$5

    The next set:

    K1='PA - Collections'!$G$6
    L1='PA - Collections'!$H$6
    M1='PA - Collections'!$I$6
    N1='PA - Collections'!$J$6
    O1='PA - Collections'!$K$6

    I need this sequence to progress for 36 of these sets.

    I tried to hi-lite A1:O1 and drag the saved formulas across to the right. All it did was duplicate the three saved sets of data over and over.

    I don't know code! Hopefully this can be solved without it. Any help would be greatly appreciated!! Thanks in advance!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to Copy a string of links

    try this
    =INDEX('PA - Collections'!$G$4:$K$39,CEILING(COLUMNS($A$1:A1)/5,1),MOD(COLUMNS($A$1:A1)-1,5)+1)
    Attached Files Attached Files
    Last edited by martindwilson; 11-02-2013 at 03:03 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    11-01-2013
    Location
    Atlanta, GA USA
    MS-Off Ver
    Excel 2010
    Posts
    115

    Re: How to Copy a string of links

    That absolutely works the way I need it to!

    Excellent solution ... simple enough for me to use.

    Thank you! Very much appreciated!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to Copy a string of links

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Replies: 2
    Last Post: 01-02-2013, 08:35 AM
  2. Replies: 0
    Last Post: 04-01-2009, 01:10 PM
  3. Copy & Pasting in VBA + break links (See thread: Find part of string and delete)
    By thedivvy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2009, 07:46 AM
  4. Coding links in a text string
    By herric in forum Excel General
    Replies: 3
    Last Post: 10-29-2008, 10:59 AM
  5. [SOLVED] Can we update links automatically somehow after making a copy of a sheet with links?
    By StargateFanFromWork in forum Excel General
    Replies: 4
    Last Post: 12-08-2005, 05:40 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