+ Reply to Thread
Results 1 to 6 of 6

Macro to Auto Insert data

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Macro to Auto Insert data

    I'm guessing I need a macro to achieve what I want in my spreadsheet so any help on this would be appreciated.

    Very simply, if A1 contains specific text, let's say "Over 21", I need B1 to automatically populate with the "No". However, I don't know if this complicates matters but, B1 can also be user completed with other text. Is this possible? If so please can someone help with how I can create this.

    Thanks.

    EDITED - I forgot to say, because the user can input data into B1 as an alternative to the "No" being auto-populated is the reason I can't simply create an IF statement.
    Last edited by xybadog; 09-17-2013 at 05:29 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to Auto Insert data

    It should work on A1 and B1 cells alone or it should work for the entire column of B based on column_A data?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Macro to Auto Insert data

    Just those single cells.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to Auto Insert data

    Do right click on sheet tab and select view code and paste the below code...

    Return to excel and check...

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Macro to Auto Insert data

    Excellent, Thanks.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to Auto Insert data

    Glad it helps you and thanks for the feedback and rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Macro for auto insert images
    By ish80 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 01:41 PM
  2. Complex VBA problem auto insert date and time, auto insert comment, etc.
    By rojashan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 09:40 PM
  3. Replies: 1
    Last Post: 01-19-2012, 04:34 PM
  4. Macro to auto insert a formula.
    By mike_rowell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2011, 02:23 PM
  5. Macro to auto insert rows
    By JimmiOO in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-09-2010, 09:22 AM

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