Run any macro from one button | 🤯 | Excel Off The Grid

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 22

  • @ianl1052
    @ianl1052 3 หลายเดือนก่อน +1

    One button for them all..."my precious".
    Great video. Thanks for your time and effort.

  • @Nevir202
    @Nevir202 ปีที่แล้ว +1

    Thanks, wasn't really looking to do THIS but it let me implement what I wanted.
    A macro that will only execute when a certain state is present in the sheet, (which is checked by formulas on the sheet itself, which is what I'm looking at.) and otherwise launches a customized error message telling them to look at the messages and fix it before trying again.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  ปีที่แล้ว +1

      What a great idea. I had never even considered that scenario.
      I wonder what I could use that technique for. 🤔

    • @Nevir202
      @Nevir202 ปีที่แล้ว

      @@ExcelOffTheGrid Thanks! Always nice to hear that I had an idea that even someone so much more knowledgeable than me hasn't had before lol

  • @IvanCortinas_ES
    @IvanCortinas_ES ปีที่แล้ว +1

    Another great tutorial with a lot of added value. Spectacular operation of the macro. Thank you very much Mark.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  ปีที่แล้ว

      You're welcome Ivan. I'm glad you enjoyed it.

  • @EricHartwigExcelConsulting
    @EricHartwigExcelConsulting ปีที่แล้ว +1

    Now this is really cool! I can not wait to start using it!
    Thank you for creating/sharing this Mark!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  ปีที่แล้ว +1

      Please do use it. 👍
      You'll be seeing it in one of the academy tools very soon.

  • @kebincui
    @kebincui ปีที่แล้ว +1

    Excellent video. Thanks our clever Mark for sharing this trick. Looking forward to more! ❤👍🌹☺️

  • @wmfield152
    @wmfield152 ปีที่แล้ว +1

    Great (& useful) trick, Mark. Thanks again for sharing your knowledge.

  • @Rice0987
    @Rice0987 ปีที่แล้ว

    Good idea for calculating processes with several steps. :)

  • @paulmartinlife
    @paulmartinlife ปีที่แล้ว +1

    Very nifty, though I see a potential (and not improbable) issue with this solution as the image name refers to a cell which could be changed. If a column is inserted before col. F, for example, the code fails. A useful presentation nonetheless, which I could apply. Thanks again, appreciated...

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  ปีที่แล้ว +1

      You can use a named range instead of a cell reference. This doesn't require any changes to the macro code, it should still work 😀

  • @mrfish_22
    @mrfish_22 ปีที่แล้ว +1

    Exacly one week ago i wrote macro with this same concept, but i running userforms after select shapes.
    Public Sub RunForm()

    Dim strShapeName As String
    Dim shpSelected As Shape

    strShapeName = Application.Caller

    Set shpSelected = ActiveSheet.Shapes(strShapeName)
    Select Case shpSelected.name
    ' after select shapes with name getQuery, userform with name getQuery shows up
    Case "getQuery"
    getQuery.Show
    Case "addQuery"
    AddQuery.Show
    End Select

    End Sub

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  ปีที่แล้ว

      It took me a really long time to think of that, and it turns out I could have just copied you. 🤣
      Good work.

  • @micheltw
    @micheltw ปีที่แล้ว +1

    Could this be done with an office script button?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  ปีที่แล้ว +1

      I can't think of a way to make it work with Office Scripts. At present, they can't identify which button triggered the script, and a button can only run a single script.
      It would be amazing if they could.

    • @micheltw
      @micheltw ปีที่แล้ว

      What a nice challenge

  • @tomstrack42
    @tomstrack42 ปีที่แล้ว +1

    Very nifty!