+ Reply to Thread
Results 1 to 15 of 15

Make cells appear based off of an spin button or something similar

  1. #1
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Make cells appear based off of an spin button or something similar

    Hi I was wondering if there is a vba code that would allow me to make this header appear every few lines dependent on an amount that varies from order to order.... header.png

    maybe something that looks like this.... counter.png

    If not vba, could you point me in the right direction to where on the forms i could ask?

    Thank you,

    Addie
    Last edited by aadams14; 10-07-2020 at 11:21 AM.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Make cells appear based off of an spin button or something similar

    Can you provide a more thorough example. What you are asking for is not clear.

  3. #3
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    I am trying to create a macros that essentially copy and pastes that header in this format dependent on what value is entered into the spin button. Does that make more sense? Sorry if I am being vague, I don't really know how else to explain it.

    bigb bom.png

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Make cells appear based off of an spin button or something similar

    So when the spin button value equals 3, you want the header to populate starting at row 3, and so on. It would help us if you could provide the actual file you are working with, see yellow banner above.

  5. #5
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    No if the spin button value equals 3, I would like the header to populate 3 times every 15 lines, ext. This is a form for my company so I cannot post the original, but can post an excel with just the header in it.

  6. #6
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Make cells appear based off of an spin button or something similar

    is the 15 lines constant

  7. #7
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    Quote Originally Posted by maniacb View Post
    is the 15 lines constant
    Yes it is constant

  8. #8
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Make cells appear based off of an spin button or something similar

    Here is code and a working file:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    Thank you so so much!!!!!

  10. #10
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    Here is the excel attachment
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Make cells appear based off of an spin button or something similar

    There is a conflict with the Worksheet_selectionchange on Sheet1, once I deactivated it, the other code works.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Make cells appear based off of an spin button or something similar

    Use this code for the Worksheet_selectionchange on Sheet1, Now the change is specific to the relevant cells, not the whole page.

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    thank you, that worked very well

  14. #14
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    Quote Originally Posted by maniacb View Post
    Use this code for the Worksheet_selectionchange on Sheet1, Now the change is specific to the relevant cells, not the whole page.

    Please Login or Register  to view this content.
    Hey! I have another quick question about this same form and this code that enables/disables command button... For whatever reason the button does not enable unless I push the enter button after writing the engineer name in the I1. Is there a way for it to enable without having to push the enter key? I am going to reattach the file.
    Last edited by aadams14; 10-28-2020 at 10:07 AM.

  15. #15
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Make cells appear based off of an spin button or something similar

    Here is the file again...
    Attached Files Attached Files
    Last edited by aadams14; 10-28-2020 at 10:16 AM.

+ 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. Replies: 3
    Last Post: 11-27-2018, 02:02 PM
  2. [SOLVED] Distributed Amount Based on Cells in Same Column
    By Iriscience in forum Excel General
    Replies: 3
    Last Post: 12-20-2016, 01:59 PM
  3. [SOLVED] Put a border around cells that make up an amount
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2016, 06:22 PM
  4. [SOLVED] Need to find a negative amount and match it to the positve amount based on Acct# and Date
    By sbrandhorst in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2016, 07:49 PM
  5. Limit value of multiple cells based on a maximum amount
    By halvy52 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2014, 02:38 PM
  6. [SOLVED] Help In Adding Amount in Cells Based on Name in Another Cell
    By dksodhi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 05:47 AM
  7. [SOLVED] Make cells negetive amount
    By ggant in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-19-2006, 11:20 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