ms-office

How to find Microsoft Office path from command line

穿精又带淫゛_ 提交于 2020-08-07 06:32:47
问题 I would like to use command line to locate the path of MS office. It should return something like C:\Program Files (x86)\Microsoft Office\Office14 which might differ to different users. Tried using: where WINWORD.EXE INFO: Could not find files for the given pattern(s). for %i in (WINWORD.EXE) do @echo. %~$PATH:i No output Thanks for any help 回答1: One starting point is the registry entries for application registration reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD

How to find Microsoft Office path from command line

℡╲_俬逩灬. 提交于 2020-08-07 06:32:27
问题 I would like to use command line to locate the path of MS office. It should return something like C:\Program Files (x86)\Microsoft Office\Office14 which might differ to different users. Tried using: where WINWORD.EXE INFO: Could not find files for the given pattern(s). for %i in (WINWORD.EXE) do @echo. %~$PATH:i No output Thanks for any help 回答1: One starting point is the registry entries for application registration reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD

64 bit Word VBA DEVMODE.dmDuplex returns 4

拟墨画扇 提交于 2020-08-06 05:31:12
问题 I am currently in the process of converting the VBA code from the old 32bit Office to 64bit Office. We have a printing functionality that allows the user to change the default printers setting from duplex to simplex and vice versa. I have gone though the majority of my code replacing Long with LongPTR and adding PtrSafe when declaring functions. The issue I am having is that when calling the CopyMemory function, the returned DEVMODE contains different values in 64 bit and 32 bit. See below:

Make Outlook add-ins working with Office 365 shared mailboxes

会有一股神秘感。 提交于 2020-07-06 16:50:57
问题 I am building apps with the new technology of Office add-ins (formerly app for Office). The add-ins activate well when registered globally for the Office 365 tenant or individually by user (mechanical gear > manage add-ins). I would like my add-in to work with Office365's shared mailboxes. The add-ins do not load in Outlook desktop or in OWA when the shared mailbox is open alone. However, I managed to make it work when setting the shared mailbox as a shared folder displayed under my primary

Make Outlook add-ins working with Office 365 shared mailboxes

て烟熏妆下的殇ゞ 提交于 2020-07-06 16:50:34
问题 I am building apps with the new technology of Office add-ins (formerly app for Office). The add-ins activate well when registered globally for the Office 365 tenant or individually by user (mechanical gear > manage add-ins). I would like my add-in to work with Office365's shared mailboxes. The add-ins do not load in Outlook desktop or in OWA when the shared mailbox is open alone. However, I managed to make it work when setting the shared mailbox as a shared folder displayed under my primary

PowerShell: How to find and uninstall a MS Office Update

匆匆过客 提交于 2020-07-05 10:37:06
问题 I've been hunting for a clean way to uninstall an MSOffice security update on a large number of workstations. I've found some awkward solutions, but nothing as clean or general like using PowerShell and get-wmiobject with Win32_QuickFixEngineering and the .Uninstall method on the resulting object. [Apparently, Win32_QuickFixEngineering only refers to Windows patches. See: http://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/93cc0731-5a99-4698-b1d4-8476b3140aa3 ] Question 1

Excel macro - open specific word file

余生长醉 提交于 2020-06-17 02:33:57
问题 I haven't found anything that can help me. I'm trying to open a certain word file, have some data written in it and saved under a different name. This is what I have so far: Dim appWD As Word.Application Set appWD = CreateObject("Word.Application.8") Set appWD = New Word.Application Dim docWD As Word.Document Set docWD = appWD.Documents.Open("C:\Documents and Settings\Excel macro\Standaard.docx") appWD.Visible = True ' ' Data is selected and copied into "Design" ' Copy all data from Design

How to open new Word docx document in word Add-in

限于喜欢 提交于 2020-06-10 02:04:38
问题 I have developed a word add-in using word javascript api. My Document .docx file is on server and i need to open that .docx document as a new word document on a button click in add-in. Please guide me how i can open new document in word add-in. Thanks. 回答1: There is a new method we are adding to the API that you can actually use to achieve this. Notice that is in preview, which means will be in production in a couple of months. You need latest Office version plus reference our preview office