+ Reply to Thread
Results 1 to 3 of 3

Fill Data Series - Problems with only one row of data.

  1. #1
    Registered User
    Join Date
    02-13-2009
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    10

    Fill Data Series - Problems with only one row of data.

    I currently have a macro so that cell B8 is given a value of 1.
    Then it selects the range from B8 to the last cell in that column and does a fill series.

    Please Login or Register  to view this content.
    This works most of the times. But the number of rows containing data differ with each spreadsheet, and when there is only one row of data, it fills down from B8 all the way down to cell B65536 at the bottom of the excel worsheet.
    Is there any way to possibly count the number of rows containing data and then allowing the Fill Series macro to run only if there are more than one rows? I would really greatly appreciate your help. Thanks!
    Last edited by VBA Noob; 02-14-2009 at 11:16 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Fill Data Series - Problems with only one row of data.

    Try working from the bottom up.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-13-2009
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Fill Data Series - Problems with only one row of data.

    Thanks, StephenR! Works perfectly! :D

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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