+ Reply to Thread
Results 1 to 6 of 6

Dynamic Ranges - Create Using VBA as looping through Sheets

Hybrid View

max57 Dynamic Ranges - Create Using... 11-06-2013, 08:40 PM
AB33 Re: Dynamic Ranges - Create... 11-07-2013, 04:53 AM
max57 Re: Dynamic Ranges - Create... 11-07-2013, 10:28 AM
AB33 Re: Dynamic Ranges - Create... 11-07-2013, 10:42 AM
max57 Re: Dynamic Ranges - Create... 11-07-2013, 11:00 AM
AB33 Re: Dynamic Ranges - Create... 11-07-2013, 10:57 AM
  1. #1
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Dynamic Ranges - Create Using VBA as looping through Sheets

    If Trim((x(i, 7))) = vbNullString Then
    Simply testing if column G is nil. It is one of the condition for that particular task.

    The reason forgetting the error is this line.

     x = ws.Range("A1:E" & ws.Cells.Find("*", , , , xlByRows, xlPrevious).Row)
    The max column loop the X array can take is 5, which is E. If you change it to G, you would not get an error.

  2. #2
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: Dynamic Ranges - Create Using VBA as looping through Sheets

    Thanks for the explanation.
    I didn't think to look back in the code to find the problem.
    A very useful bit of information.

    Thanks again.

+ 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] To use name manager or create dynamic ranges in VBA
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2013, 03:37 PM
  2. How to create dynamic ranges, better alternative to OFFSET
    By JamesGoulding85 in forum Excel General
    Replies: 2
    Last Post: 06-04-2013, 03:27 PM
  3. [SOLVED] Create Multiple Dynamic Named Ranges with a Macro
    By bennank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2012, 12:55 PM
  4. Looping through dynamic ranges from multiple worksheets
    By TechWrangler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2006, 03:20 PM
  5. [SOLVED] Looping with Hidden and Protected Sheets/Ranges
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2005, 02:07 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