Forum Discussion
Alecs
Nov 06, 2022Brass Contributor
simple macro: jump to selected column
Hello guys, need your help creating a macro button: in row 1, I have this formula: =IF(E2=TODAY();"today";"not") in row 2, I have typed each day within a month. I need a button that once clic...
- Nov 06, 2022
Sub today() Dim i As Long i = Application.WorksheetFunction.Match("today", Rows(1), 0) Cells(2, i).Select End SubYou can try this code.
OliverScheurich
Nov 06, 2022Gold Contributor
Sub today()
Dim i As Long
i = Application.WorksheetFunction.Match("today", Rows(1), 0)
Cells(2, i).Select
End SubYou can try this code.
- AlecsNov 06, 2022Brass ContributorIt works perfect! thanks!