+ Reply to Thread
Results 1 to 4 of 4

Cant get my DO WHILE Loop to function - Help please

  1. #1
    Registered User
    Join Date
    03-27-2014
    Location
    Perth WA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Unhappy Cant get my DO WHILE Loop to function - Help please

    Hi,

    I am trying to produce a function that will update formulas based on the value of i. At present my code will copy and update the formulas across a range (rng1) based on the manual input of i. what i wish to do now is insert a loop that will increase the value of i by one each time until the range (rng1) is full. Within the loop I will need an IF statement to produce an updated formula that takes into account if i is less than or greater than 10.

    Please help. been on this for a good few hours now and keep getting Type Mismatch errors.

    Many Thanks!!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cant get my DO WHILE Loop to function - Help please

    Hi,

    Maybe

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-27-2014
    Location
    Perth WA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Cant get my DO WHILE Loop to function - Help please

    Hi Richard,

    Firstly thanks for your response.

    It seems functioning correct in terms of the loop. However, I think the problem may be that I am filling the Range of cells each time it loops. What I want to do is fill row 1 of the range in the first loop, row 2 of the range in the second loop, row 3 in ther third loop... etc.

    Any ideas on how I can generate a row update rather than a range? Slightly puzzled

    Thanks

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cant get my DO WHILE Loop to function - Help please

    Hi

    In that case

    Please Login or Register  to view this content.

+ 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. Loop Function
    By nickm84 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2013, 12:26 PM
  2. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  3. [SOLVED] Help with Loop Function
    By Clue_Less in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-14-2012, 04:09 PM
  4. Loop Function
    By joelmurphy in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-08-2010, 06:53 AM
  5. [SOLVED] Loop Function unable to loop
    By Junior728 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2005, 06:05 AM

Tags for this Thread

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