+ Reply to Thread
Results 1 to 3 of 3

VBA to fill the row

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    VBA to fill the row

    Hi,

    I have Column with numerical series.

    Like,
    Column A Column B

    B6 1
    B7
    B8
    B9 2
    B10
    B11 3
    B12
    B13
    B14
    B15 4

    B7 and b8 is blank above, so want VBA to automatically put preceding value as "1" in B7 and B8.
    Same way B10 which is blank, have the preceding value 2 to update there..
    Like wise do for all below. Update preceding value.

    How can do this with VBA?

    Thanks,
    Shiva
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA to fill the row

    I feel like you are a consultant and you just post all your clients problems here for us to solve.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA to fill the row

    Thanks Stnkynts.

    You are partially right.. I am not consultant but employee working in small farm. In my day to day activity I work on many reporting file which is done manually. This forum helped me a lot in learning codes because of which I have made my life easy. I learned but not upto the skill all you guys have. So I try building code first and when I fail I seek your help here.

    And I do not post the client problem here, but help my self in day to day file in which I work manually.

    And plus, I do contribute as much as I can on queries posted by others here with the best of my knowledge.

    If I reaching out asking for help here is wrong, then please let me know.. I will abstain from posting query henceforth.


    Anyways, your code works wonderful.. Thanks...
    Reps added.

    Regards,
    Shiva

+ 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. How to color-fill blank cells, then once data is entered cell is no-fill
    By hatemail13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 07:57 PM
  2. Replies: 1
    Last Post: 09-07-2011, 05:57 PM
  3. Replies: 0
    Last Post: 04-06-2009, 04:07 PM
  4. Replies: 1
    Last Post: 07-13-2007, 10:59 AM
  5. [SOLVED] Fill in form to type Item descrictions and costs and fill in funct
    By cradino in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-16-2006, 03:45 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