+ Reply to Thread
Results 1 to 3 of 3

Code for Range does not go past first instance.

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    87

    Code for Range does not go past first instance.

    Hello All,
    I am trying to copy values from a range but as I have it set up the code does not go past first instance.

    Please Login or Register  to view this content.
    Please see the attached spreadsheet for the example. Cell B1 does pick up the expected value from I2 but B12 does not pick up value from I13. What should I change in the code to ensure that it works for all the instances?


    Thanks,
    Aadesh
    Attached Files Attached Files

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Code for Range does not go past first instance.

    Delete

    Exit For

    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Code for Range does not go past first instance.

    Quote Originally Posted by Debraj Roy View Post
    Delete

    Exit For

    Please Login or Register  to view this content.
    Works Thanks Deb!

+ 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. How to adapt this code to past formatting only?
    By RayJay01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2013, 07:58 PM
  2. Strikethrough code to activate when end date is past.
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-27-2012, 07:04 AM
  3. Opening Workbook as new Instance - code affecting other workbooks
    By supes77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2012, 03:40 AM
  4. search a range for an instance of A, B or VC
    By nigelog in forum Excel General
    Replies: 5
    Last Post: 02-15-2011, 09:02 AM
  5. [SOLVED] Can't get past Line 3 of code
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-07-2006, 12:35 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