# Need macro step to enter value of spinbutton

**URL:** <https://forums.distill.io/t/need-macro-step-to-enter-value-of-spinbutton/4875>\
**Category:** Help and Support\
**Tags:** macros\
**Created:** [March 18, 2025, 12:40pm UTC](https://forums.distill.io/t/need-macro-step-to-enter-value-of-spinbutton/4875 "2025-03-18T12:40:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![strifet](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/6bbea6/32.png) [@strifet](https://forums.distill.io/u/strifet)\
**Post date:** [March 18, 2025, 12:40pm UTC](https://forums.distill.io/t/need-macro-step-to-enter-value-of-spinbutton/4875/1 "2025-03-18T12:40:24Z")

</div>

I need a macro to interact with a spinbutton. The site has spinbuttons for entering month, day and year. The valuenow is always the current month, day or year. The spinbutton allows editing the current value by typing the desired number. So clicking on the month spinbutton will show the valuenow (currently ‘3’ for March) and I can type in my desired entry (‘10’ for October) and the cursor jumps to the next spinbutton for entering the day of the month.

I’m not sure how to make a macro do this (replace the ‘3’ with a ‘10’). (And I don’t want to use the up arrow seven times to get from ‘3’ to ‘10’ because I always want ‘10’ regardless of the valuenow which will increase each month.)

I don’t know if the macro step should be a TYPE or FILL or if a CLICK or if another step is necessary. I’m also not sure which element the CSS selector should specify, the aria-label="month, " and aria-valuenow=’3’ or something else.

Thanks.

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [March 19, 2025, 1:53am UTC](https://forums.distill.io/t/need-macro-step-to-enter-value-of-spinbutton/4875/2 "2025-03-19T01:53:25Z")

</div>

1. the `fill` step works well for most form controls.
2. the appropriate selector to be used depends on the page. `[aria-label=month]` sounds like a good candidate. make sure that the selected element is the `input` element that needs to be filled with the updated value.
