+ Reply to Thread
Results 1 to 2 of 2

Insert text/variable value to loop output

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Insert text/variable value to loop output

    Evening all, I need to insert a fixed block of text and a number (by variable) to loop output, please see code snippet below,

    Please Login or Register  to view this content.
    Range V149 is determined elsewhere by formula
    Vertpitch is set by variable and moves to another row as each loop is completed, so this changes after every cycle.

    The current code inserts ,XXX on each loop so this potentially repeated 50 x by the end of a loop on a row....

    pointers greatly appreciated..

    BR

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Insert text/variable value to loop output

    I suggest looking at the For...Next loop.

    It's hard to write some code for you without seeing what it is exactly that you want, but I'd be happy to help if you upload an example workbook with a Before and After.

    Let me know how you go

+ 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] Paste variable output (SQL Output) into a single cell.
    By fblaze in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 06:24 AM
  2. Macro to find-insert and Prompt user for Text Loop
    By excellentlearner in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2012, 08:33 PM
  3. Why did an inner loop variable start overwriting the outer loop range suddenly?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2012, 03:24 PM
  4. moving text box in a sheet according to a loop variable
    By lilahh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2012, 12:01 PM
  5. Do Loop with variable output
    By tubbsy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2008, 01:27 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