+ Reply to Thread
Results 1 to 2 of 2

VBA to loop through contents of a cell

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    5

    VBA to loop through contents of a cell

    Hi all,

    I am looking for some help.

    Effectively I have a cell that contains the following data :-

    63303-9600
    63303-5280
    63303-9700

    What I need to do is loop through this cell and take the first 10 characters and ouput to a row, then take the next 10 characters and output to the next row and so on until it has been through all the cell content.

    Any suggestions.

    Thanks,

    Iain

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: VBA to loop through contents of a cell

    Ian

    Are the 3 values on separate lines within the cell?

    If they are try this.
    Please Login or Register  to view this content.
    Last edited by Norie; 02-13-2014 at 12:35 PM.
    If posting code please use code tags, see here.

+ 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. VBA to use cell contents to loop through folder to see if filename exists
    By bdunphy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2013, 11:15 AM
  2. [SOLVED] loop col. A, start at bottom, pull contents of cell into msgbox, user input, dupe,&again
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2013, 03:07 PM
  3. Split cell contents over multiple rows based on cell contents
    By naigy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2011, 05:38 PM
  4. How easy is it to loop in VBA based on cell contents?
    By Lee Harris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2005, 09:25 PM
  5. How do I make a cell's contents equal to another cell's contents with macro program?
    By mgmcdevitt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2005, 04:44 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