+ Reply to Thread
Results 1 to 3 of 3

Filling cells

  1. #1
    Registered User
    Join Date
    09-14-2010
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2007
    Posts
    45

    Filling cells

    I would like to count the rows in a worksheet, using the values in column A, and then copy the contents of B1,and , C1 into all the rows below them.

    I did this a long time ago, but my current attempts don't work.

    I tried a macro, but it doesn't let me us my Rows.Count variable.

    Suggestions, please?
    Jim

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Filling cells

    To figure out last row,

    can you use
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    my suggestion is the middle one as it focus on column A
    **you can use a larger number than A65536 if your version of excel allows and if you have more than 65536 rows
    Last edited by humdingaling; 04-22-2013 at 09:38 PM. Reason: put into code

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,970

    Re: Filling cells

    I tried a macro, but,... But I didn't post it

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
    Ben Van Johnson

+ 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