+ Reply to Thread
Results 1 to 9 of 9

I need help with AutoFill VBA

  1. #1
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    I need help with AutoFill VBA

    Hello Everybody,

    Thank you all you support.

    My Problem I have this below code. I need this below code to modify as everytime I enter text in
    column B the marco automatically need to fill serial number in column A. I mean

    A B
    1 venkat
    2 vani
    3 raju
    ramu
    roudy

    Please Login or Register  to view this content.
    thank you for your help,
    venkat

  2. #2
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: I need help with AutoFill VBA

    Please Login or Register  to view this content.
    I got It finally but I need help with it update everytime something added to column B

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: I need help with AutoFill VBA

    If you just want to have 1, 2, 3 4, etc in A based on if there is a value in B, you could do this with a very simple formulaA2, copied down...

    =if(B2="","",A1+1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: I need help with AutoFill VBA

    Try:-
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: I need help with AutoFill VBA

    If you just want to have 1, 2, 3 4, etc in A based on if there is a value in B, you could do this with a very simple formulaA2, copied down...

    =if(B2="","",A1+1)
    Thank you Sir,

    Yes,

    I dont want any formulas show on my sheet, so may be VBA can help me to do this. and I am learning VBA.
    Last edited by venkatpvc; 08-21-2013 at 12:50 PM. Reason: added quotes

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: I need help with AutoFill VBA

    Quote Originally Posted by venkatpvc View Post
    Thank you Sir,

    Yes,

    I dont want any formulas show on my sheet, so may be VBA can help me to do this. and I am learning VBA.
    The formulas wont show, but Im sure some-one will give you tyhe code you want

  7. #7
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: I need help with AutoFill VBA

    MickG,

    That is Perfect, What I am looking for.

    Thank you very much...........
    venkat

  8. #8
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: I need help with AutoFill VBA

    You 're welcome
    Regrds Mick

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: I need help with AutoFill VBA

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as SOLVED. Thanks.


    Please start marking your threads as solved.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. [SOLVED] Very small AutoFill macro showing "AutoFill methode of range class failed" why ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 10:21 PM
  2. Replies: 0
    Last Post: 09-17-2012, 08:24 AM
  3. Macro for Autofill removes header info when there is no data to autofill
    By esturan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 01:42 PM
  4. Replies: 1
    Last Post: 06-17-2005, 04:05 PM
  5. Replies: 0
    Last Post: 03-02-2005, 12:06 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