+ Reply to Thread
Results 1 to 4 of 4

Hyperlinked sheets to copy cells in specific cell

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Hyperlinked sheets to copy cells in specific cell

    Hi
    I have 2 columns A and B
    Column A is all the sheets as hyperlinks and column B is a text.

    What I want the macro to do is:
    Copy the cell B2
    Use the hyperlink in A2
    Paste the B2 information in the hyerlink sheet cell J6
    And loop it until there is no more information in A or B column

    Any one can help me with this?

    Best Regards Niklas

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Hyperlinked sheets to copy cells in specific cell

    I took "no more information" to mean that you did not want to keep it after we have completed each task. The following will send the B2 value to the J6 range of the linked worksheet in Column A until there are no more entries in Column B, and then erase the entire original set.

    Please make a copy of your workbook and test the following on your copy. VBA is difficult to undo and a few simple precautionary steps can save you time and a headache.
    Please Login or Register  to view this content.
    If it is not your wish to erase the original data, replace:
    Please Login or Register  to view this content.
    of the above with:
    Please Login or Register  to view this content.
    which will simply navigate you back home.

    -HTH-
    Last edited by AlvaroSiza; 03-01-2012 at 03:41 AM.

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Hyperlinked sheets to copy cells in specific cell

    Thank you soooo soooo much this was amazing.
    Just what I wanted
    Gonna try to understand the code learn VBA-programming cause this is brilliant.

    //Niklas

  4. #4
    Registered User
    Join Date
    02-29-2012
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Hyperlinked sheets to copy cells in specific cell

    Do i need to copy the code into every file I want to work with
    or is it possible to just copy sheet1 into the file I want to do the macro in?
    When I do that the code takes the old file, and opens it and do the command there.

    Think I found it?

    Set wsSource = ThisWorkbook.Sheets("Sheet1")
    vs.
    Set wsSource = ActiveWorkbook.Sheets("Sheet1")
    Last edited by Niklas1976; 03-01-2012 at 11:05 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