+ Reply to Thread
Results 1 to 2 of 2

Macro loop struggles

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2010
    Posts
    92

    Macro loop struggles

    Hi guys!

    I would like to make a simple loop. I want the loop to add a X value (of 1) to multiple ranges in my code. VBA "Next without For". Could you tell me what I am doing wrong? Am it doing the
    Please Login or Register  to view this content.
    +x.value part right? I want the code to add x (1) to the range everytime it loops.

    Thank you very much in advance!


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Macro loop struggles

    Start the loop where you want it to start, not at the beginning of the code. Possibly after you set the workbooks.

    You probably don't need x.value, just x

+ 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] Beginner help with VBA | Struggles with attachments to email
    By Jstns in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2017, 06:38 AM
  2. [SOLVED] SUMIF with INDEX MATCH struggles
    By Glower0617 in forum Excel General
    Replies: 2
    Last Post: 06-23-2016, 11:37 AM
  3. New to Excel - Conditional Formatting struggles.
    By southaja in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-15-2016, 03:53 PM
  4. Replies: 1
    Last Post: 06-05-2013, 12:11 PM
  5. Macro Loop Broken. Detects Max but doesn't continue loop
    By herchenbach in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2011, 12:17 PM
  6. [SOLVED] custom dll struggles
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2006, 10:00 AM
  7. [SOLVED] Struggles with Numercial Sorting. Please Help.
    By mtbakerstu in forum Excel General
    Replies: 1
    Last Post: 05-03-2006, 07:00 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