+ Reply to Thread
Results 1 to 3 of 3

Looping through similar declerations but cannot use Arrays.

  1. #1
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Looping through similar declerations but cannot use Arrays.

    Hi again All,

    I'm just trying to get my head around something here! My intention is to loop through cel1 To cel5 for example so that I can set a range using the union of these cells if they are not nothing (Something). The problem being that I can't seem to use arrays i.e cel(1) to cel(5) because I am using them in their own For Each.. Next Loops. Anyone got a way around this?

    Please Login or Register  to view this content.
    Many thanks!

    ARowbot
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

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

    Re: Looping through similar declerations but cannot use Arrays.

    You can't use syntax like this to refer to variables.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Looping through similar declerations but cannot use Arrays.

    I understand that hence why it is in red! I was after a way around it!

+ 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. Looping variable or arrays for boolean?
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2015, 12:53 PM
  2. Declaring multiple multi-dimensional arrays (jagged arrays) - compile error?
    By dfribush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2013, 05:06 PM
  3. [SOLVED] New to arrays-Can I move a column in a 2D array without looping to add data?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-14-2013, 08:13 PM
  4. [SOLVED] Trouble Looping Multiple Column Arrays
    By D.L. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2012, 03:32 AM
  5. Looping arrays in VBA
    By berabus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2010, 09:33 AM
  6. Declerations
    By mpeplow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2006, 04:40 PM
  7. [SOLVED] Public Declerations
    By Shawn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2005, 07:05 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