word
105 TopicsOffice.js: Is there any supported way to retrieve multiple non-contiguous text selections in Word?
Hi everyone, I'm developing a Word Office Add-in using Office.js. In Microsoft Word (Windows Desktop), users can select multiple non-contiguous text ranges by holding Ctrl while selecting text. However, when I use: context.document.getSelection() It only returns a single Word.Range, and I couldn't find any API to detect or retrieve all the selected ranges. I came across this related discussion: Microsoft Tech Community – Support for Retrieving Multiple Selected Ranges in Word via Office.js My questions are: 1. As of 2026, is there any supported Office.js API to retrieve multiple non-contiguous text selections? 2. Is there any workaround to detect that the user has selected multiple ranges? 3. Or is this still a platform limitation? Our use case is an AI-powered legal research add-in, where users may want to select multiple clauses from different parts of a document and send them together as context. Any guidance would be appreciated. Thanks!29Views0likes4CommentsWord Document Using Columns Not Modified, But Suddenly Displays Differently
I am using MS Word on my Windows 11 desktop. I have been using a Word document that I created a couple of years ago. The document uses Columns. The last time I modified it was a year ago. I tend to print it out every two days. Suddenly, the document displays differently and prints those differences. It now displays vertical lines below four of the five squares. I moved the document to my Windows 11 laptop. Same problem there. I sent the Word document to my son who opened it on his Mac computer. On his computer, it displays exactly as it should -- No erroneous vertical lines. Again, I have not modified the document. I thought maybe a Windows update may have caused the problem, but I don't see any Windows update in about one month. I am displaying two images below, a "before" and "after" image. The "before" (i.e., correct) image shows five squares and the alphabet displaying vertically. The "after" image shows vertical lines below the first four squares. Can anyone suggest a fix for this? Repeating myself again -- I have not modified this file in a year. Thank you. Len Jacobson First Image -- Correct display of the five squares and the alphabet displayed vertically Second Image -- Incorrect display. Vertical lines appearing below the first four squares.113Views0likes12CommentsAdd-in Error of complements in Word Online with my Personal Account
Hi, I am getting an error when trying to insert any add-in (such as Mendeley Cite) in Word Online using my personal account. Error message: "Add-in Error: We couldn't connect to the catalog server for this document" (Original Spanish error: "Error de complemento: no pudimos conectarnos con el servidor del catálogo {0} para este documento") Here are the details and the troubleshooting I've already done: - Account-specific: It works perfectly with my old University account, but fails with my new Personal account. - Platform-specific: The add-in works fine on the Word Desktop App, but fails on Word Online (web browser). - Browsers: I have tried different browsers (Chrome, Firefox) and the issue persists. It seems to be a configuration or permission restriction specific to my personal account on the web version. How can I fix this? Thank you!24Views0likes1CommentRuler Feature Disappeared from Microsoft Word on Android Tablet
Hello everyone, My father recently bought a new Android tablet specifically to use Microsoft Word for his work because he relies heavily on the Ruler feature. When I first installed Word, the Ruler was available and worked perfectly. However, after restarting the tablet, it disappeared. Since then, I have uninstalled and reinstalled the app several times, tried different versions of Word, checked all the settings, and confirmed that we had an active Microsoft 365 subscription, but the Ruler is still missing. My father has also tried adjusting to different document layouts and workarounds, but unfortunately none of them are practical for his workflow. He simply cannot work efficiently without the Ruler feature. Has anyone experienced this issue? Is the Ruler still supported in Microsoft Word for Android, or has it been removed? If it's still available, is there any way to restore it or install a version that includes it? My father bought this tablet mainly for Microsoft Word, so this feature is essential for his work. Thank you for any help or clarification.46Views0likes2CommentsHow do I get balloon commenting on the right side of the page?
I'm using Word 2024 because I don't want AI in my interface. Now commenting all appears in the tab side bar. I can click on the "Comment" pulldown in the ribbon to show comments properly, but I can't write in them. This is aggressively hostile to people with vision difficulties. Even with my glasses, that's much smaller than I'm comfortable with. How can I get the comments that were so good and useful back? If not, how can I change the type size in the sidebar so I can read and write comments? Microsoft, please, don't ruin your products because you want to make us use AI for things that it's not helpful for. I don't use Word for anything I want AI in and deal with documents I cannot legally allow to be exposed to unverified servers like AI chatbots.Solved34Views0likes1CommentSection Page Count and Section Pages field Bugs
Posting for Greg Maxey I have Microsoft® Word 2019 MSO (Version 2508 Build 16.0.19127.20302) 32-bit. There are bugs in program related to accurately returning section page count. To produce, open a new Word document and perform the following: Type single short line of text e.g., Hello World. Apply an end note to that text. Hit the enter key until empty paragraphs push the end note to the very top of the next page. In the header enter a {Page} field and a {Section Pages} field. E.g., Page {Page} of {Section Pages} pages Update the fields. Look at pages 1 and 2 in the document. The Header {Section Pages) field incorrectly returns Page 1 of 1 pages and Page 2 of 1 Pages. The human eye and the {Page} field obviously are correct. The Section Pages field is wrong. Run the following macro: Sub ScratchMacro() 'A basic Word Macro coded by Gregory K. Maxey Dim oRng As Range Set oRng = ActiveDocument.Sections(1).Range MsgBox ActiveDocument.Sections.Count 'Correct. Word knows the document has 1 section MsgBox oRng.Information(wdActiveEndSectionNumber) 'Correct. Word knows the range is in that 1 section MsgBox oRng.Information(wdNumberOfPagesInDocument) 'Correct. Word knows that the document has 2 pages MsgBox oRng.Information(wdActiveEndPageNumber) 'Bug. Incorrect, should return 2. lbl_Exit: Exit Sub End Sub48Views0likes4CommentsWord Similarity Checker fails in desktop and web: “Something went wrong”
Hello, I am having an issue with Microsoft Word Similarity Checker. The Similarity Checker consistently fails with the message: “Something went wrong. Try again.” This happens in both: - Microsoft Word desktop - Word for the web / Microsoft 365 web version Product/account details: - Microsoft 365 subscription is active - Word shows activated under File > Account - Connected experiences are enabled - Word desktop version: Microsoft 365 Apps, Version 2606, Build 20131.20112 Click-to-Run Current Channel Troubleshooting already completed: 1. Confirmed Word is activated under File > Account. 2. Confirmed connected experiences are enabled: - Experiences that analyze your content: ON - Experiences that download online content: ON - All connected experiences: ON 3. Ran Office Update Now. 4. Restarted Windows. 5. Ran Quick Repair. 6. Ran Online Repair. 7. Tested in a brand-new blank Word document. 8. Tested on mobile hotspot instead of normal network. 9. Confirmed ProtonVPN was turned off. 10. Cleared Office Wef cache contents at: %LOCALAPPDATA%\Microsoft\Office\16.0\Wef\ 11. Checked Microsoft Edge WebView2 Runtime. The installer says it is already installed for the system. 12. Signed out of Word/Microsoft 365, restarted Windows, and signed back in. 13. Tested again in Word desktop. 14. Tested again in Word for the web. 15. The same “Something went wrong. Try again” Similarity Checker error still occurs. I also previously saw a script error when clicking Update License in Word: URL shown included: https://oc.officeapps.live.com/odc/v2.1/hrd Error: 'Hrd' is undefined Because the issue occurs in both desktop Word and Word for the web after these troubleshooting steps, this seems like a Microsoft 365/Word Similarity Checker service-side or account-side issue rather than a local installation problem. Can someone from Microsoft confirm whether there is a known issue with Similarity Checker right now, or whether this needs to be escalated as an account/service-side problem?43Views0likes1CommentEquation editor renders properly on screen but does not print properly
For multiple people at my workplace, on both their home and work computers, Equation Editor expressions are often not printing properly, either to pdf or to physical printers. On screen, everything shows correctly. It's especially frustrating because equations are partially rendered -- cos x will be printed as co , a polynomial expression will be missing the last term, etc. -- which means that the errors don't jump out in a quick look at the printout or pdf. As far as we can tell, the longer you wait after opening the document in Word, the more renders properly, but there are no guarantees, and there are often a great many errors on a one- or two-page sheet with lots of formulas. I didn't see this problem before this last year or so. We are using version: Word for Microsoft 365 MSO (Version 2604 Build 16.0.19929.20164) 64-bit46Views0likes1CommentSpace between Sentences changed in recent update
Before my PC was rebooted for an OS update on the fifteenth, the space checking behaved as expected. Since then, it is incorrectly adding grammar squiggles and pauses when checking where it should not. In the proofing settings for this, I have (why is this panel not in dark mode? xD): Which used to ignore quoted sentences such as: However, you can now see a squiggle where one does not belong. This happens with all "special ending" punctuation (question & exclamation) provided the following character is a capital letter. (A full-stop in quotes should be followed by two spaces as a comma is used when ending followed by a "(s)he said.) In other cases, if followed by a lowercase, it remains correct: I changed nothing about my settings between the update and also tried with the latest one this morning (the 25th), but the problem persists. This was also working correctly with mixed sentences before the update: Here, we see a new sentence after the first question, indicating a bit of extra movement or, in some cases, a thought. Again, this worked correctly before the update and has since started doing this. I hate to disable this option because I sometimes forget to space correctly (or I am deleting stuff and remove too much, where the squiggle helps me fix it, as it should). And no, I am not interested in a "how many spaces" fight. The live support told me to post here to find an answer or get this fixed… I hope it helps in finding the change and reverting it back to how it should be. Thank you.112Views0likes2CommentsRestrict Editing of styles, allow new breaks, TOCs, etc.
I've restricted editing to a selection of styles in my Word template. This, however, also restricts some key essential functions, for example, you can't add in a new Table of Contents or add in page or section breaks. Is there any way to just limit the Font and Table styles, while allowing everything else?46Views0likes1Comment