+ Reply to Thread
Results 1 to 2 of 2

Macro: Fill Down

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

    Macro: Fill Down

    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 EXCEPT when there is only one row of data. When there is only one row, 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:17 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Macro: Fill Down

    try this

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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