In a Microsoft template file I downloaded from their website, whenever you type any word in place of where it says " < your company > " (for instance, if I type the word "Apple" in it's place), it automatically changes it everywhere within the entire document. So anywhere in the document that says " < your company > ", it will now all be changed to "Apple".
Does anyone know how to create that?
It seems like some pre-programmed and automated "Find & Replace" feature, but I don't know how to create it. Does it involve some external Excel file? I don't think it's a macro, because " < your company > " is replaced by text that is entered, not a pre-determined word.
This video kind of addresses what I'm trying to achieve. But it's not quite perfect because it's talking about a "find and replace" for multiple Word files, and for replacing the text with a pre-determined word (not what the user enters):
www.youtube.com/watch?v=etSoe8P7_PE
The Word file I'm referring to can be downloaded from my dropbox here:
https://www.dropbox.com/sh/b8hg0ahbx27wfij/CdlGP_bdcm
If you don't feel comfortable downloading a file from my dropbox: I downloaded this file from Microsoft's website, so if you want to download it directly from there, you can via the link below. It seems like the link won't take you directly to the file, so you just have to enter "project change" in the search bar and click enter, then download the Word 2013 "Project change authorization form (Business Blue design)" file:
http://office.microsoft.com/en-us/templates/results.aspx?qu=project%20change&queryid=13f05805-9704-404a-911b-c3cd70c3fe5c&avg=zwd#ai:TC103444179|
Thank you so much for your time and help!!
This is the code you look for :
Find and Replace using Word interop
Hope this helps.
The current version of the OP's template lives at https://templates.office.com/en-us/Services-proposal-Business-Blue-design-TM02911896
It is using content controls (forms), which are accessible under the developer tab of the ribbon. Click "Design Mode" to view the magic.
Related
I'm trying to locate and check a text inside a .doc element which is opened on a new tab through a link.
So let's suppose I click a link which opens a new tab, this tab is a .doc which has a title saying "Welcome".
How can I let my robotframework check that welcome text?
ND. I've tried with the standard keywords like "Element text should be", "Page should contain" etc. and it's not working.
Thanks
There is nothing built into robot framework to do this. Fortunately, robot framework is very extensible so you can write a custom keyword to do the work. This keyword will need to open the file and do the search, and then return the results to the test.
There is a question on this site titled Reading doc file with python which might be able to help with reading the file.
The robot framework user guide has an extensive section on writing custom keywords. See Creating test libraries
For example, I want to search a file whose name is "module-product.js" to rename it.
But there are lots of files whose names started with "module-".
How to quickly find the specific file in Visual Studio Code?
Ctrl+P and enter details into the popup that you would like to search for! You can prefix the search with # to search for a function.
Others (on a mac) include;
⌘+T Show all Symbols
⌃+G Go to Line...
⌘+P Go to File...
⇧+⌘+O Go to Symbol...
A secret feature of VSCode is the explorer filter.
Cmd-Shift-E (or clicking the sidebar) focusses the explorer. Typing some characters shows only files or directories whose names contain the given characters. Esc clears the search.
As usual, you can use Up- and Down-Arrow to navigate the displayed file list and Cmd-Down to open the currently highlighted file.
I am having an issue with Word 2013 and spell checking the contents of Rich Text Content Controls.
I am currently working on a project where text is inserted (via a Word Add-In) into a pre-defined document template which makes use of Rich Text Content Controls. The inserting of the data into the content controls all works great, but I am having an issue where the newly inserted text within the content controls is not being spell checked by Word 2013.
I have read numerous posts on line which suggest that 'grouping' the content controls in the document resolves the issue, but haven't been able to implement this fix.
Text outwith the content controls is being spell checked, but any text within the content controls is not.
Steps to reproduce:
Open Word 2013 and create a new blank document.
Ensure that the DEVELOPER tab is enabled (if not, see instructions here)
On the DEVELOPER tab, enable Design Mode under the Controls group.
Still on the DEVELOPER tab, under Controls, add a new Rich Text Content Control.
Amend the default "Click here to enter text." so that it contains a spelling mistake.
On the DEVELOPER tab, exit Design Mode.
On the REVIEW tab, choose Spelling & Grammar. You should observe that the deliberate spelling mistake within the content control is not recognised.
James, the text you edit in the Rich Text Content Control is what is called the Placeholder Text. This text is to be defined by the 'content' developer.
This text won't be part of the Spelling & Grammar review as the Placeholder Texts are 'constants' defined by the developer, hence the reason why they are under the Developer tab.
So it is advised to first put the texts that you want to use in a Placeholder in a normal document, do the spell check and copy them over and apply to the Placeholder Text.
I think it is fairly reasonable not to include the Placeholder texts in Spelling & Grammar as:
It will take time to process the fixed assets
End users may not have access to the Placeholder Texts to edit the 'mistakes'
I have a cell in my spreadsheet that has a hyperlink to a script file (AutoHotKey) and I'd like to be able to launch said script by clicking on the cell in Excel. It works but I'm always presented with a warning:
Some files can contain viruses or otherwise be harmful to your computer. Would you like to open this file?"
I've done everything I can think of in the Trust Center to get it to allow me to open this file without having to confirm it.
Is there something in the Trust Center, or a bit of VBA, that I could use to allow access to this file (and others like it) without having to confirm my selection every time?
This solution should also work for newer Excel versions (e.g. 365)
Download Procmon:
https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx
Run Procmon.exe
Toggle Capture Events to off (File > Capture Events)
Clear the current events (Edit > Clear Display)
Toggle Capture Events on.
Click the desired hyperlink in Excel.
Turn Capture Events off.
Filter by Process=EXCEL.EXE (Filter > Filter ..) and click add
Filter also by Operation=RegQueryValue and Result=NAME NOT FOUND
Find the first entry with EditFlags in the path (use the search icon to search the filtered list)
Right click on that entry and select > Jump to (opens registry)
9 Add a new DWORD type named EditFlags with the hexadecimal value 10000.
In my case it was the key htmlfile_FullWindowEmbed
Modified from here
Please follow instructions on the following page to resolve your issue:
How to enable or disable hyperlink warning messages in 2007 Office programs and in Office 2010 programs
https://support.microsoft.com/en-us/kb/925757
Regards,
Please try to create/add the REG_DWORD type registry value “EditFlags”
(with the value data "EditFlags"=dword:00010000) under the registry
key location “HKCR\htmlfile_FullWindowEmbed\” on the same problem
client machine. After that, please restart the client machine and
then try to open the PDF file through the http URL link from the Excel
file again.
Solution found here
I'm trying to create a toolbar button that inserts a footer (including some buttons) into the current mail.
As far as I know, theres no way to create and modify buttons directly with Lotus Formula, so I'm trying to copy/paste from another document. I can't use a mail template because I need the text to be inserted in replies.
This is what I have assembled from online examples:
#PostedCommand([FileOpenDatabase]; "SERVER" : "mailbox.nsf" ;
"($All)" ; "" ; 1 ; 1 ) ;
#PostedCommand([OpenDocument] ; "" ; "34884517EED80C33C125A999005301D4") ;
#PostedCommand([EditDocument]) ;
#PostedCommand([EditGotoField] ; "Body" ) ;
#PostedCommand([EditSelectAll]) ;
#PostedCommand([EditCopy]) ;
#PostedCommand([FileCloseWindow]) ;
#PostedCommand([FileCloseWindow]) ;
#PostedCommand([EditPaste])
This works inconsistently, depending on what I am looking at when pressing the button.
Sometimes it opens a search box with the actual text of the mail pasted in it. It does seem to close the new mail.
I'm especially confused because many commands don't take any arguments, eg FileCloseWindow. How do I control the "context" of the commands or check for success?
It feels like doing automation with SendKeys - fire off a chain of commands and hope that nothing unexpected happens. Of course, I am a total noob with Lotus Formula, so I may be doing this totally wrong. Any help is appreciated.
You may want to use Alan Lepofsky's free "Paste Information" application.
The Notes database "Paste Information" serves as the repository for the content you wish to reuse. Move the cursor to the position where you want to insert the text, click on the "Paste Information" Toolbar icon and then choose the document (aka. text) to insert.
http://www.alanlepofsky.net/alepofsky/alanblog.nsf/dx/paste-information-application
There really isn't a good solution for this using formulas. You'll be stuck in the SendKey-like world you describe.
If you can modify the mail template even a little, you could add a form to it that includes your text and buttons, instead of grabbing it from a central database. Then you could automate creating a new document based on that form, copying the contents, etc. That could help the automation work consistently and perhaps more quickly since it would be getting the resource from within its own database.
You could also then add a shared action button to all the mail forms (memo, reply, etc) that runs this formula, which would make distribution a lot easier.
I'm afraid even with LotusScript, this is an impossible task because you can't insert rich text into a UI document ( or at least not in the version I am running ).