osx - Using Windows Word macro in Mac Word -


i have written macro (assigned button) in word in windows, , want use in word in mac, however, button not working in mac anymore, , have run macro visual basic editor. hints?

private sub commandbutton_click()     selection.tables(1).columns(1).select     selection.find         .style = "style2"          icount = 0         while .execute             icount = icount + 1         wend          msgbox (icount)     end end sub 

unfortunately, cannot link macro button in word mac. button object exists in userforms- not directly in word document. (oddly enough, exist in excel.) has been major frustration me want allow users kick off script without visiting "macros" area. can access macros from menu item: tools -> macro -> macros, or view ribbon in 2016.

note: make available macros area, have make public.

you can link macro key command, run macros menu, or have run on document_new() or document_open().

here's microsoft's official way run macro in mac word (2016). https://support.office.com/en-us/article/run-a-macro-in-word-2016-for-mac-e1407255-84f6-49a0-bb54-56e04bfdec23

hope helps.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -