+ Reply to Thread
Results 1 to 5 of 5

VBA - Loop until cell in another worksheet is empty

  1. #1
    Registered User
    Join Date
    06-25-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    15

    VBA - Loop until cell in another worksheet is empty

    Hi all

    Example data attached.
    I need VBA that will run from Sheet2!A2 and simply bring the contents of cell K2 in Sheet1
    I want it to loop until the last cell in column K of Sheet1 is reached.
    Each time the data is brought in that needs the macro there is a different amount of data.

    Thank you AG
    Attached Files Attached Files
    Last edited by annegrey; 06-25-2015 at 07:22 PM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA - Loop until cell in another worksheet is empty

    i think you mean column I in your example?

    also do you need the link or just the value?
    in your example you have
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    instead of 8,348.16
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-25-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    15

    Re: VBA - Loop until cell in another worksheet is empty

    Hi

    Apologies - yes I just want to return the values in column I on sheet 2 and I only need the values not the link. I am preparing data for upload to an Oracle database.

    AG

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA - Loop until cell in another worksheet is empty

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-25-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    15

    Re: VBA - Loop until cell in another worksheet is empty

    Thank you very much - that worked well. AG

+ 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. [SOLVED] Loop until cell in different worksheet is empty
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2014, 06:19 AM
  2. For Loop until empty cell
    By alex_shin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2014, 03:24 AM
  3. [SOLVED] Loop formula on one worksheet until empty cell on another worksheet
    By Natstin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2013, 11:16 PM
  4. Loop until cell is empty
    By patocj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2013, 03:22 PM
  5. [SOLVED] Loop until cell is empty
    By Ricky Pang in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-12-2006, 12:20 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