+ Reply to Thread
Results 1 to 5 of 5

Autofill:double clicking on the lower left hand corner

  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Question Autofill:double clicking on the lower left hand corner

    Hello,

    How do call this action of creating a formula in a cell, selecting the cell where the formula is in, and then double clicking on the lower left hand corner so that is fills all the cells below until there is no more data on the left hand side column?

    (See attached screenshot).

    And how does this operation translated in a VBA macro for Excel?

    I use Excel 2010.

    Thank you in advance for your help,
    Attached Images Attached Images

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

    re: Autofill:double clicking on the lower left hand corner

    Try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    re: Autofill:double clicking on the lower left hand corner

    Quote Originally Posted by davesexcel View Post
    Try this
    Please Login or Register  to view this content.
    Hi Dave,

    Thank you for your reply.

    It sort of does it, however the "Rows.Count" counts all the rows, including the blank ones..

    How do I set it so that it only counts non-blank cells?

    Many thanks,

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

    re: Autofill:double clicking on the lower left hand corner

    Your example does not show any blank cells,
    this amended code will count the rows in column B instead of counting the cells in the entire worksheet.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    re: Autofill:double clicking on the lower left hand corner

    Dear Dave,

    It works, thank you very much for your help!

    Take care,

+ 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