+ Reply to Thread
Results 1 to 5 of 5

Insert 1's in specific order each time I press a button

  1. #1
    Registered User
    Join Date
    07-15-2023
    Location
    canada
    MS-Off Ver
    latest version
    Posts
    4

    Insert 1's in specific order each time I press a button

    Hi, I need a simple macro for my project. So each time I press a button I want to insert the number 1 in a cell and like this consecutively. For example.... I press the button. I want number 1 to show up in cell d8 (without placing the mouse in this cell), then I press it again, so I want second 1 goes in d9, ...d17, then it follows row e...e8, e9, e10....e17, next 1 goes in f8,f9,f10,...f17....Notice there is a blank space in column i, o, u, y and af.

    thank you (and sorry if it is a bit confusing)!
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,404

    Re: Insert 1's in specific order each time I press a button

    How about

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-15-2023
    Location
    canada
    MS-Off Ver
    latest version
    Posts
    4

    Re: Insert 1's in specific order each time I press a button

    Thank you! It didn't work for me though. Should I put this in the modules? (I am not familiar with macros...). It shows 43663 in a random cell.. not sure what this means... Also I am working with 1904 data system, that might helps... not sure...

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,404

    Re: Insert 1's in specific order each time I press a button

    Yes, open a new workbook. Insert a module with this macro in it. Theb keep running the macro.
    It should work as expected

  5. #5
    Registered User
    Join Date
    07-15-2023
    Location
    canada
    MS-Off Ver
    latest version
    Posts
    4

    Re: Insert 1's in specific order each time I press a button

    Excellent! it work perfectly, so happy

+ 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. Press Button to Filter cell T28 = "1" Press Button Again to Clear Filter
    By wherdzik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2022, 09:06 AM
  2. Replies: 1
    Last Post: 03-16-2022, 05:17 PM
  3. Press Button Insert each subsequent cell
    By wherdzik in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2021, 11:49 AM
  4. [SOLVED] Creating A run order for a Press
    By MRChampion in forum Excel General
    Replies: 12
    Last Post: 10-29-2015, 02:27 AM
  5. [SOLVED] Order Form to Summarise Order on another sheet with a Submit Order Button
    By KazzICC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-01-2014, 03:25 AM
  6. [SOLVED] Button to Run 4 Separate WS-Specific Macros in Order
    By michael.dionne in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-21-2013, 03:22 PM
  7. Button to Run 4 Separate WS-Specific Macros in Order
    By michael.dionne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2013, 03: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