+ Reply to Thread
Results 1 to 10 of 10

Macro to fill in cells from a column sequentially when I click on a button

  1. #1
    Registered User
    Join Date
    02-20-2015
    Location
    Virgina, USA
    MS-Off Ver
    2013
    Posts
    4

    Macro to fill in cells from a column sequentially when I click on a button

    Hello.
    I'm having a lot of trouble trying to figure this out.

    This is my layout:

    Capture.PNG

    As you can see, I have 2 buttons.
    What I would like each button to do is:
    1. Each time I click on YES, it will insert a Y in a cell in a specific range.
    2. If I click on YES again, it will automatically insert a Y in the next cell under the previous one in the same column.
    3. As you can see, if I have to click on NO, it will also continue down the column and insert an N.


    If someone can help me out with this I'd be very thankful!
    Last edited by MaryZ; 02-20-2015 at 07:27 AM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to fill in cells from a column sequentially when I click on a button

    Would something like this help?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Macro to fill in cells from a column sequentially when I click on a button

    Try this;
    Please Login or Register  to view this content.
    Please click the * Add Reputation if this helps
    If solved remember to mark Thread as solved

    "I'm glad to help and this is not meant to sound smart, but either you have super-human vision to see all those controls cleared one by one with the code I posted, or your computer is really slow."

  4. #4
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Macro to fill in cells from a column sequentially when I click on a button


  5. #5
    Registered User
    Join Date
    02-20-2015
    Location
    Virgina, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Macro to fill in cells from a column sequentially when I click on a button

    Relax Blokeman. I always thank each and everyone that helps me out. Sometimes all the solutions provided don't work and usually they are totally different, which makes me able to learn a little bit more.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro to fill in cells from a column sequentially when I click on a button

    Quote Originally Posted by MaryZ View Post
    Relax Blokeman. .......
    Welcome to the forum but.

    No good start here Mary. Pls take some minutes to read forum rules before you post again, because:



    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Registered User
    Join Date
    02-20-2015
    Location
    Virgina, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Macro to fill in cells from a column sequentially when I click on a button

    Alright fotis, I didn't know it was a rule. I apologize for that.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Macro to fill in cells from a column sequentially when I click on a button

    Quote Originally Posted by MaryZ View Post
    Relax Blokeman. I always thank each and everyone that helps me out. Sometimes all the solutions provided don't work and usually they are totally different, which makes me able to learn a little bit more.
    Blokeman did the right thing - point out that same question is asked somewhere else.
    And possibly solution already got there.

    It's OK to ask for second opinion.

    But mostly approaches are same or similliar so it would be fair from your side to give us a link where your questions are asked.
    That's not just rule for this Forum.
    It's a global decent manner.

  9. #9
    Registered User
    Join Date
    02-20-2015
    Location
    Virgina, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Macro to fill in cells from a column sequentially when I click on a button

    Alright zbor.
    I understand, but I do not agree with it. Is that fine?
    I see no reason why cross posting is wrong (and yes, I read the post blokeman posted).
    It lets the OP get more answers, it lets the people that are helping exercise their minds.
    I'm find with it being a rule and from now on I will respect that, but I certainly do not agree with it at all. I see no negative aspects of doing so whatsoever, quite the contrary.

    Anyways, thanks to the guys that helped me out with the code. I finally got it working!

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Macro to fill in cells from a column sequentially when I click on a button

    It's wrong only for cross-posts without links because it takes our time for questions that might already been answered.
    You are not only person on the internet, you know.
    Someone else also need some help and we are solving already solved questions just because ... (end the sentence with a positive aspect )

+ 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] Click oval option button to fill/unfill color, also change border color to match fill
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 08:29 PM
  2. [SOLVED] Sequentially fill one cell with column of excel data
    By rye123 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-11-2013, 11:10 AM
  3. [SOLVED] Fill cells sequentially but inreasing by 20 cells at a time
    By moppyau in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2013, 11:40 PM
  4. Replies: 0
    Last Post: 08-10-2012, 12:55 PM
  5. Replies: 3
    Last Post: 03-21-2012, 05:11 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