I am currently trying to setup a template where the user is prompted to add "tags" to their document when they open a new MS-Word file. Currently I have broken this down in a few parts.
Startup prompt
Connect the document/script to the "tag" property (so the user don't have to manually change it)
Ideally implement a drop-down menu, so I don't accidentally tag some files with small differences such as spaces, case sensitive formating etc.
Currently I have tried most of what Word has to offer, which is why I came here. The easiest answer is to go in "File -> Information -> Tags" and edit this manually, but this is what I hope to automate. I have used the feature "Quick Parts", where I can add a field which edits properties such as "Author", "Tags" etc. The problem here is that they are not customizable, so I can not implement a drop-down menu. I have tried to use the "Developer" section in Word to add controllers such as drop-down menus, but I have not found a way to connect these to the document properties. I also tried using the FILLIN command to see if it could be used as shown below, just to test if I could set these properties from the document in this way.
{ SET bkmTitle { TITLE { FILLIN "Enter the document title" } } }
The problem with this implementation is that I don't want to press F9 in these fields when I start up a new project. I have not done much research into the startup prompt because I see this as the finishing touch, but if anyone has any advice on that too, it would be greatly appreciated.
I don't have any experience with macros/VBA, but I am open to learn if that is the easiest way to realize this project. Thank you kindly in advance.
From Charles Kenyon's links I solved my problem with Quick Parts. My solution was to extract the .docx file so I could access the .xml file within. Inside the .docx file (also works with the .dotm template file found in /AppData/Roaming/Microsoft/Templates). Using 7-zip I opened the .dotm archive and went on word -> document.xml.
I made a template by editing the Normal.dotm (MS-Word template file). Here I added a Quick Part for "Category", then saved the template. I then opened the .xml file as mentioned above where I could edit this Quick Part for the template from textfield to a drop down menu (was not possible to change in Word to my knowledge).
To change it into other types than drop down menu, it is possible to add other control forms from Word by clicking on the "Developer" tab and selecting other controls such as "Checkbox". When you open the "document.xml" file afterwards, you can now see the schema for a checkbox.
When editing the "Document Properties" style Quick Parts, they are automatically linked to the document properties, which is what I wanted to learn how to do. It is probably possible to also use the document.xml file to explore how to link other fields to the document properties. I hope this answer might help others if they want to explore more options in MS-Word.
Related
Hi Everyone
I'm new to selenium, please bear with me, and guide me a little bit.
So I want to make an automation process with selenium-ide, with the hope that this automation will make testing in my project easier.
So using selenium-ide and trying to upload a file using dropzone.js, here is the normal flow.
Click the button 'Add Photo'
Windows explorer will pop up
After the file is selected, on the background, 'dropzone' will manipulate the file while opening a pop up "Image Editor"
After clicking "Confirm" the file will be uploaded to the server.
What I want to accomplish is "How can I manipulate click/select the file after file explorer opened, using selenium-ide? or is it possible?"
I have already spent hours trying to find the solution and have had no luck.
I try using the command "type" or "send key", and also on my discovery we could use javascript directly with the command "execute script", but I just don't know how to make it work
What I expect is, I could manipulate the manual proses of the selection file with automation from selenium-ide.
Thank You.
I got my own answer guys!
My goals above can be solved using selenium-ide command called "type",
Here is the explanation:
Command:
I use "type", according to selenium-ide it will store value to your element.
Target
Dropzone will create its own element 'input file' and it's hidden, of course, so this is one that we should get, instead of your own input file. You may find it with class dz-hidden-input, and since I have many file inputs I use an array at the end of XPath [{$check}]
Value This one is the exact path where you put your file locally.
**The Logic / How it works: **
with this solution, we don't need to trigger file explorer, because the above code will inject the image inside dropzone file input, and since dropzone listens to their file input which is dz-hidden-input, it will act the same way that we choose the file from file explorer.
I hope this answer will help someone whos bumped into the same problem.
Kudos XD
I had a bunch of macros that I had in C:\Users\userx\AppData\Roaming\Microsoft\Templates that were always available in word 2010 but since upgrade to word 2013 I cannot run them. Word apparently does not automatically load them anymore. I used to just do alt F8 and pick from the list. I also had a few added to the quick options bar but they are gone also.
Searched this site and MS website and can't seem to find a solution. Is there another location that I need to move the files containing the macros to or is there some other action that I need to take so I can run them again?
My guess is this is already answered here and I am just not searching for the right things. My apologies if that is the case, please just point me to the appropriate post.
You can place a shortcut to the templates containing your macros in the following location
C:\Users\%username%\AppData\Roaming\Microsoft\Word\STARTUP
That will make your macros available whenever Word opens and restore the Alt+F8 functionality you're looking for. If you add toolbars to your templates, those will also automatically be attached to the Normal template when you open Word.
Is there a way to upload all the opened documents to the current site without having to load em manually?
At the moment for each opened document I select one and I press Ctrl+shift+U but it's kinda lame if you edited more than 10-20 files
thanks
There is no native function however I have this simple cheat I use:
Open up the find and replace dialogue
Do a search for a string that appears in all the open documents. The page title usually has something useful. Make sure "all open documents" is selected. Click "Find All"
The panel appears that shows you all the instances of your search (should be all the open files)
Highlight all the file names in the search results panel, right click, and click "put"
It actually only takes a few seconds and saves you the pain of having to put each file individually. This is obviously for cases where simply highlighting the files and clicking the put button isn't feasible (e.g. files in multiple directories, etc).
In CS6 (not sure about older versions), when viewing the local site, right-click on the project's parent directory, hover on 'Select' and then 'Checked Out Files.'
This will highlight all the files you have checked out and allow you to check them in with one click.
Note: As Dreamweaver gathers all of the check in status information from the server, this can take quite a while if it is a large project. Only suggested for smaller projects, in which case it seems to work great!
Following the same process, you can also select 'Recently Modified', which only searches your local site and is much faster (but doesn't directly answer the check in/out part of your question).
I hope this helps!
I was a big fan of the Get Put All Extension, but it does not work on CS4 or CS5.
Unfortunately, upload all open is not built in. A long while ago I wrote a Dreamweaver extension called Get Put All, which allows for getting or putting of all open documents. It should still be available for sale (probably $5 or under) at the CommunityMX web site (down for me at the moment). I no longer contribute to CommunityMX, so I won't see any proceeds. While written a while ago, it should work fine in newer versions of Dreamweaver.
Just found out how to do it.
Use ctr+select all the files in the tree view under files and then right click on the selected entries and click "put"
SOLUTION:
1) Click on "Site"
2) "Manage Sites" (Select the site you want to manage)
3) "Edit"
4) "Remote Info"
5) And tick the checkbox "Automatically upload files to server on save"
(See where I am going here)
Have all the files you want to upload OPEN on Dreamweaver
6) Then "Find" a common code each document has
7) And "Replace ALL" with the EXACT same code
*Make sure "Find in: OPEN DOCUMENTS" is selected before you do the replacement
Once Dreamweaver has find and replaced the exact code - all documents will be unsaved at this point.
8) Just click "Save All" and voila!!! Now your CTRL+SHIFT+U fingers can chill the F out!
Hope this helps!
Oh, Remember to uncheck "Automatically upload files to server on save" afterwards or when not needed
PS: When you click "Save All" - you might get Dreamweaver saying "NOT RESPONDING". Just leave dreamweaver alone until it's done because it's uploading files at a rapid rate depending how fast your internet is :)
I'm trying to work out how to get sharepoint 2010 to display the quicklaunch on a web part page, the default.master trick I used in 2007 doesn't appear to work any more.
In my 2007 install, I simply edited the default.master and moved the quicklaunch code outside of the PlaceHolderLeftNavBar element but this doesn't have any effect in SP2010.
Thanks
A simple way to eneble Quick Launch Menu on WebPartPages is remove tags UIVersionedContentUIVersionedContent and PlaceHolderLeftNavBar using SharePoint Designer 2010.
See this article: http://denmartins.wordpress.com/2011/05/07/exibir-menu-quicklaunch-em-webpartpages/
If you really want to place another copy of the quicklaunch on a web part here is the steps
Using Sharepoint Designer 2010 go to your site and navigate to Master Pages -> v4.master
Click edit file copy everything in the <div class="ms-quickLaunch"> that should copy everything you need for the quicklaunch to run. For best result use the code view and hover over the quicklaunch and you should see the div, click on it and copy (Ctrl + C)
Now you can paste that on another web part page and it should work, I tried it by creating a new test page and it worked
You need to make changes in v4.master (in masterpage library), not in default.master.
For details on SharePoint 2010 master pages, please, follow this link:
http://sharepoint-sandbox.com/index.php?/Tips-and-Tricks/Customization/tip-80-sharepoint-2010-new-masterpages.html
Your masterpage trick on my SharePoint Foundation 2010 environment works fine.
Anyway, I don't think, that moving any standard code from placeholder is a good idea. If you want change position of quicklaunch menu, you should move the leftnavbar placeholder itself, including all the contents.
Placeholders are generally used to allow some pages, for example application pages, replace placeholder contents. So, if you hide the placeholder, and move it's contents out, these changes will be lost, and the standard menu will be shown. (and if you do not hide the placeholder, you can get two menus on one page :) )
Hope it helps!
I want to hyperlink to a page within the Word 2007 Object Model Reference documentation, that ships with Word 2007. These are webpages that use the ms-help:// protocol that Firefox cannot understand.
So I wanted to specify the ms-help:// path of the help page as a command line argument to the viewer, CLVIEW.EXE.
C:\Program Files\Microsoft Office\Office12\CLVIEW.EXE
Does anybody know the command line syntax for this?
CLVIEW.EXE doesn't support command line parameters to launch to a certain page. It's usually used to launch your own custom help file within the hosted Office application.
With Word 2007 there are some options available. They depend, let me repeat, they depend on whether your help is in online or offline mode.
If your intent is simply to get
people to a specific Word help page
and they have internet access, you can grab the URL from the help file
in online mode. To do this,
just right-click on the page you
want the link, for example the
Make the text bold page, to and click Properties. Then copy the URL
(Address) which is:
http://office.microsoft.com/client/helppreview.aspx?AssetID=HA100215341033&ns=WINWORD&lcid=1033. This will work just fine in FF (if you were in Offline mode, this
same link would have been:
ms-help://MS.WINWORD.12.1033/WINWORD/content/HA10021534.htm.)
If you are first sending them to
Word, you can run an macro that
brings up this topic. You grab the
"Topic ID" from right-clicking on
the page Make the text bold page
(which, in this case is
"HA10021534") and put that ID as the
first parameter, like the below.
NOTE: This should work in both
online and offline mode.
Sub DisplayHelpTopic()
Application.Assistance.ShowHelp "HA10021534", ""
End Sub
For developer documentation with the
solution for #2, if you are in
offline mode, you need to set the
scope to "DEV" (which will also work
if you are in online mode). So for
the subject Bibliography Object,
the Topic ID is: HV10096617. If you
are in online mode, you don't need
the "DEV" scope. Code:
Sub DisplayHelpTopic()
Application.Assistance.ShowHelp "HV10096617", "DEV"
End Sub
You can view these documentation pages in Internet Explorer.
Open up your Word docs to the page you want.
Right click, Properties and copy the ms-help:// URL.
Paste this URL in IE, it should open up fine.
Use the command line syntax for IE to hyperlink to it.
Hope that helps, although clicking links in IE may not work properly.
Maybe CLVIEW.EXE has command line syntax that can do this directly.