Home |
Search |
Today's Posts |
|
#1
|
|||
|
|||
I think you should be able to save from Word as a .txt file and then
just change the file's extension to .htm or .html. You don't need Notepad to do that. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org On Thu, 21 Apr 2005 09:49:04 -0700, "gman" wrote: Suzanne and Jay, Thanks so much for taking the time to answer my questions. Yes, my terminology is often my own when trying to describe something that is new and unfamiliar. Often that is why it is hard to pick up a book on, let's say, Word that is 700 pages and find what one wants (which, I believe, is why many people use sites like this to ask questions!). Anyway...going WAY back to my original question, I created a spread sheet in Excel with the HTML fields I want filled in in my HTML code. Then, I used the merge feature to place them in the template I created of the HTML code. Then, I imported the data into the document that is based on the template (here we go again w/ terminology). Worked great. Did exactly what I wanted, EXCEPT-- and it is a big exception -- the only way one can get the code to work properly as a web page on a website is to have it made into a .html file with NOTEPAD (gets rid of formatting). Ugh. And, the only way to get a file (document) displayed in Notepad is to have it as a .txt (plain text). SO, once I imported the info into the document that is based on the template I have to save it as a .txt file and then open that file in Notepad and save it as .html (or, .htm). After all this it works. However, the Control - F9 method has problems in that if I put the MACROBUTTON stuff into a .txt document then I can find no way to import the data from Excel as, apparently, it will only export to a .doc document, not a .txt document. Which brings me back to the same point as with the other method. I have to import into a .doc, change that to a .txt and open in Notepad and save as .htlm. Then, it works. (The catch with all this seems to be the handling of photos, which is what I am uploading. Using Notepad doesn't appear necessary if one is just wanting to upload a document. Just save as a .html in the Save As box and upload. Why photos don't work using this method has me curious.) (I don't know how to create macros, but could one be designed to do these steps for me? In other words, could it be designed to import data from Excel into .doc document then have that saved as a .txt document and then have Notepad run and create a .html file?) As for my other questions that y'all kindly answered, I need to print out your remarks and work with them. AutoText! It seemed so obvious a need that I figured there had to be way, but I just didn't know the terminology! lol Well, if nothing else, I learned a little bit about importing info into Word and the Control - F9 method for inserting data. (As for this method, can one tab between the MACROBUTTON areas in a document when NoMacro is used?) Thanks again. gman "Jay Freedman" wrote: Hi gman, Answers follow the questions... On Wed, 20 Apr 2005 10:10:08 -0700, "gman" wrote: Thanks to all who have been patient in helping me with this issue. Adding this to my HTML code will make it easier to prepare the code for each photo for uploading to my website. 1) Okay, I see how the ‘Control – F9’ method that is described operates, but I am still curious about using the Insert - Field - MacroButton method. After I select MacroButton under Field Names, what do I select on the right side where it says Macro Name? Do I type anything in the Display Text box? If you want to use the "NoMacro" trick discussed in the UsingMacroButton.htm page (that is, use a name for any macro that doesn't exist, so that clicking the macrobutton field only selects it), remember that it *is* a trick -- something not deliberately intended by Word's designers -- so the Insert Field dialog doesn't make it easy for you. The list contains only the names of macros that do exist; including all the names that don't exist would make for a fairly large list. :-) Instead, you'd have to click the Field Codes button on the lower left of the dialog, and type in the NoMacro name followed by whatever display text you want. In either place in the dialog, the display text is what appears on the page when field codes are toggled off with Alt+F9 or Shift+F9. If you don't type any display text, the macrobutton field will be invisible, which would defeat the purpose of having one. So yes, you really do have to type something for the display text. Personally, I find the Ctrl+F9 method to be a zillion times faster than the dialog. 2) How do you open the actual template to modify it? The only way I can find is to go to Windows Explorer and find the file, right click, select ‘open’ and make changes there. If I select ‘New’ under file, then ‘On my computer’ under templates on the right pane, right click on the template and select ‘open’, it opens up a window that has the template, but it says ‘Template 1,’ for example, instead of the name that I gave the template. If I make changes and hit ‘save,’ it asks me what I want to say it to. I can select the template from the template list; however, this is different than when I open the template from Windows Explorer, which opens the template itself. When I hit ‘save’ there after making changes it just saves it without asking me where I want to save it. The Windows Explorer right-click Open method is one way to open the template itself. See the answer to question 3 for another way. Using New, either in the Windows Explorer right-click menu or in Word's File menu, creates a *document* (not a template) *based on* the template you choose. This document will contain a copy of any text and styles in the template, but it will not contain any of the macros, toolbars, or AutoText from the template. Word will ask you where to save this new unnamed document. In the File Save As dialog, you can change the "Save as type" box to "Word Template" to make it into a new different template. Doing so will cause Word to automatically suggest the User Templates folder as the location instead of the Documents folder. 3) Is there a way to open templates, both the original template to modify and the template document, under File? I can not find a way to add ‘templates’ under File or to a toolbar. Use the File Open dialog. Set the "Files of type" box at the bottom of the dialog to "Document Templates". Then you'll have to navigate to the folder that holds the template file (generally the one named in the Tools Options File Locations dialog as the User Templates folder). To make this easier, you can add the User Templates folder to the vertical panel of icons on the left side of the File Open dialog. Open the dialog and navigate to the User Templates folder. Then click the Tools menu in the upper right corner of the dialog, and select the item labeled Add to "My Places". From now on, you can just click that icon. In general, remember that New makes a new document based on the selected template, while Open opens the template or document that you select. I don't understand what you're calling a "template document". There is a template (a .dot file) and there is a document (a .doc file). There is no hybrid. 4) Can I add a shortcut under File or to a toolbar? This seems like a thing to do with macros. Maybe, however, there is an easier way than using a macro to do this. Again I think we're suffering some confusion of terminology. If by "shortcut" you mean a shortcut to open a particular file, the simplest way is to enable the Work menu as described at http://www.word.mvps.org/FAQs/General/WorkMenu.htm. This is a separate top-level menu to which you can add the names of documents or templates to which you want instant access. In Word, the more common use of the term refers to "keyboard shortcuts", which are two- or three-key combinations that execute commands. Word comes with dozens of predefined shortcuts that you probably already know, such as Ctrl+S for Save and Shift+F9 for Toggle Field Code. You can define your own keyboard shortcuts by going to Tools Customize and clicking the Keyboard button. This is discussed at http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm. In either case, although it's possible to do these things with macros, it's a Bad Idea(tm) -- far more complicated than simply setting things up once in the template. 5) Is there a way to save often used text, such as name and address, e-mail address, MACROBUTTON NoMacro, etc. so that it can be inserted at a cursor location? In other words, for example, I want to type my name and address and save it. Then, I want to be able to position the cursor somewhere, right click and be able to select from a menu option that pops open a list of all the text I saved, and have it insert the text I select (my name and address, for example) where the cursor is located. You've just described the AutoText feature. The article about it on the MVPs site happens to be mine. :-) Read http://www.word.mvps.org/FAQs/Custom...n/AutoText.htm. 6) Is there a way to have Word open without a blank document showing when it is first started? I want it to be like a browser window with nothing in it. Then, when I select ‘New’ under File, it opens the first document in a new window. The reason why I ask this is because I cannot find a way to close the original blank page that opens up when Word is started without Word closing entirely itself. In other words, selecting ‘Close’ under File when attempting to close the original document now acts like ‘Exit’ under File. You can modify the command line in the desktop icon that launches Word. Right-click the icon and select Properties. Put the cursor in the Target box, at the end after the WINWORD.EXE path. Type a space and the code /n and then click OK. (Note: If the existing icon is one where the Target box isn't selectable, you can make a new icon by right-click-dragging the icon of WINWORD.EXE from Windows Explorer to the desktop and selecting Create Shortcut Here from the popup.) Unfortunately, there is no way to force this on other people's PCs, and there's no easy way to accomplish it from inside your template (because by definition Word has to be running already). Besides that, you may find that certain things don't work properly when there is no document open. Thanks again. gman Glad to help! -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
#2
|
|||
|
|||
Hi,
Yes, you're right, which is what I was doing in Notepad. either way, I still have to do another save regardless of how I do it. Do you know why one cannot save as .html in the Save As menu and have it work properly? When I do it that way all I get when I open the file for preview in the brower is just the text of the code, not the photo which should appear. The /n switch did stop a blank document from opening when I started Word, but when I then open a new blank document it opens in that window that started. I would like the first document to open in its own window as do the second, third, fourth, etc. documents. Is there any way to do this? Also, when Windows Explorer is open (and open to a particular file, let's say My Pictures) and it is partially behind another window, if you click on the Windows Explorer window in the right panel, for example, to bring it forward, the file that is open to show its contents will change unless you click exactly on it / its icon or horizonally to it in either direction. If you click next to a different file (and not even on the file's icon / name itself) in either hrizontal direction, that file opens to reveal its content, so you have to go back and select the file that was originally open and showing its contents. One should have to click directly on a file name / icon or on the +/- to have the file reveal its contents and not have this happen by clicking anywhere in the horizonal direction to that file. Here is another situation: My browser window is fully open. I open a Word document. I click anywhere in the browser window or on a feature and Word automatically minimizes itself. I have AOL, BTW. Is there anyway to stop this automatic minimizing from happening? If one clicks on the desktop, it doesn't minimize, so it has to do with the browser. gman Freedman" wrote: I think you should be able to save from Word as a .txt file and then just change the file's extension to .htm or .html. You don't need Notepad to do that. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org On Thu, 21 Apr 2005 09:49:04 -0700, "gman" wrote: Suzanne and Jay, Thanks so much for taking the time to answer my questions. Yes, my terminology is often my own when trying to describe something that is new and unfamiliar. Often that is why it is hard to pick up a book on, let's say, Word that is 700 pages and find what one wants (which, I believe, is why many people use sites like this to ask questions!). Anyway...going WAY back to my original question, I created a spread sheet in Excel with the HTML fields I want filled in in my HTML code. Then, I used the merge feature to place them in the template I created of the HTML code. Then, I imported the data into the document that is based on the template (here we go again w/ terminology). Worked great. Did exactly what I wanted, EXCEPT-- and it is a big exception -- the only way one can get the code to work properly as a web page on a website is to have it made into a .html file with NOTEPAD (gets rid of formatting). Ugh. And, the only way to get a file (document) displayed in Notepad is to have it as a .txt (plain text). SO, once I imported the info into the document that is based on the template I have to save it as a .txt file and then open that file in Notepad and save it as .html (or, .htm). After all this it works. However, the Control - F9 method has problems in that if I put the MACROBUTTON stuff into a .txt document then I can find no way to import the data from Excel as, apparently, it will only export to a .doc document, not a .txt document. Which brings me back to the same point as with the other method. I have to import into a .doc, change that to a .txt and open in Notepad and save as .htlm. Then, it works. (The catch with all this seems to be the handling of photos, which is what I am uploading. Using Notepad doesn't appear necessary if one is just wanting to upload a document. Just save as a .html in the Save As box and upload. Why photos don't work using this method has me curious.) (I don't know how to create macros, but could one be designed to do these steps for me? In other words, could it be designed to import data from Excel into .doc document then have that saved as a .txt document and then have Notepad run and create a .html file?) As for my other questions that y'all kindly answered, I need to print out your remarks and work with them. AutoText! It seemed so obvious a need that I figured there had to be way, but I just didn't know the terminology! lol Well, if nothing else, I learned a little bit about importing info into Word and the Control - F9 method for inserting data. (As for this method, can one tab between the MACROBUTTON areas in a document when NoMacro is used?) Thanks again. gman "Jay Freedman" wrote: Hi gman, Answers follow the questions... On Wed, 20 Apr 2005 10:10:08 -0700, "gman" wrote: Thanks to all who have been patient in helping me with this issue. Adding this to my HTML code will make it easier to prepare the code for each photo for uploading to my website. 1) Okay, I see how the €˜Control €“ F9 method that is described operates, but I am still curious about using the Insert - Field - MacroButton method. After I select MacroButton under Field Names, what do I select on the right side where it says Macro Name? Do I type anything in the Display Text box? If you want to use the "NoMacro" trick discussed in the UsingMacroButton.htm page (that is, use a name for any macro that doesn't exist, so that clicking the macrobutton field only selects it), remember that it *is* a trick -- something not deliberately intended by Word's designers -- so the Insert Field dialog doesn't make it easy for you. The list contains only the names of macros that do exist; including all the names that don't exist would make for a fairly large list. :-) Instead, you'd have to click the Field Codes button on the lower left of the dialog, and type in the NoMacro name followed by whatever display text you want. In either place in the dialog, the display text is what appears on the page when field codes are toggled off with Alt+F9 or Shift+F9. If you don't type any display text, the macrobutton field will be invisible, which would defeat the purpose of having one. So yes, you really do have to type something for the display text. Personally, I find the Ctrl+F9 method to be a zillion times faster than the dialog. 2) How do you open the actual template to modify it? The only way I can find is to go to Windows Explorer and find the file, right click, select €˜open and make changes there. If I select €˜New under file, then €˜On my computer under templates on the right pane, right click on the template and select €˜open, it opens up a window that has the template, but it says €˜Template 1, for example, instead of the name that I gave the template. If I make changes and hit €˜save, it asks me what I want to say it to. I can select the template from the template list; however, this is different than when I open the template from Windows Explorer, which opens the template itself. When I hit €˜save there after making changes it just saves it without asking me where I want to save it. The Windows Explorer right-click Open method is one way to open the template itself. See the answer to question 3 for another way. Using New, either in the Windows Explorer right-click menu or in Word's File menu, creates a *document* (not a template) *based on* the template you choose. This document will contain a copy of any text and styles in the template, but it will not contain any of the macros, toolbars, or AutoText from the template. Word will ask you where to save this new unnamed document. In the File Save As dialog, you can change the "Save as type" box to "Word Template" to make it into a new different template. Doing so will cause Word to automatically suggest the User Templates folder as the location instead of the Documents folder. 3) Is there a way to open templates, both the original template to modify and the template document, under File? I can not find a way to add €˜templates under File or to a toolbar. Use the File Open dialog. Set the "Files of type" box at the bottom of the dialog to "Document Templates". Then you'll have to navigate to the folder that holds the template file (generally the one named in the Tools Options File Locations dialog as the User Templates folder). To make this easier, you can add the User Templates folder to the vertical panel of icons on the left side of the File Open dialog. Open the dialog and navigate to the User Templates folder. Then click the Tools menu in the upper right corner of the dialog, and select the item labeled Add to "My Places". From now on, you can just click that icon. In general, remember that New makes a new document based on the selected template, while Open opens the template or document that you select. I don't understand what you're calling a "template document". There is a template (a .dot file) and there is a document (a .doc file). There is no hybrid. 4) Can I add a shortcut under File or to a toolbar? This seems like a thing to do with macros. Maybe, however, there is an easier way than using a macro to do this. Again I think we're suffering some confusion of terminology. If by "shortcut" you mean a shortcut to open a particular file, the simplest way is to enable the Work menu as described at http://www.word.mvps.org/FAQs/General/WorkMenu.htm. This is a separate top-level menu to which you can add the names of documents or templates to which you want instant access. In Word, the more common use of the term refers to "keyboard shortcuts", which are two- or three-key combinations that execute commands. Word comes with dozens of predefined shortcuts that you probably already know, such as Ctrl+S for Save and Shift+F9 for Toggle Field Code. You can define your own keyboard shortcuts by going to Tools Customize and clicking the Keyboard button. This is discussed at http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm. In either case, although it's possible to do these things with macros, it's a Bad Idea(tm) -- far more complicated than simply setting things up once in the template. 5) Is there a way to save often used text, such as name and address, e-mail address, MACROBUTTON NoMacro, etc. so that it can be inserted at a cursor location? In other words, for example, I want to type my name and address and save it. Then, I want to be able to position the cursor somewhere, right click and be able to select from a menu option that pops open a list of all the text I saved, and have it insert the text I select (my name and address, for example) where the cursor is located. You've just described the AutoText feature. The article about it on the MVPs site happens to be mine. :-) Read http://www.word.mvps.org/FAQs/Custom...n/AutoText.htm. 6) Is there a way to have Word open without a blank document showing when it is first started? I want it to be like a browser window with nothing in it. Then, when I select €˜New under File, it opens the first document in a new window. The reason why I ask this is because I cannot find a way to close the original blank page that opens up when Word is started without Word closing entirely itself. In other words, selecting €˜Close under File when attempting to close the original document now acts like €˜Exit under File. You can modify the command line in the desktop icon that launches Word. Right-click the icon and select Properties. Put the cursor in the Target box, at the end after the WINWORD.EXE path. Type a space and the code /n and then click OK. (Note: If the existing icon is one where the Target box isn't selectable, you can make a new icon by right-click-dragging the icon of WINWORD.EXE from Windows Explorer to the desktop and selecting Create Shortcut Here from the popup.) Unfortunately, there is no way to force this on other people's PCs, and there's no easy way to accomplish it from inside your template (because by definition Word has to be running already). Besides that, you may find that certain things don't work properly when there is no document open. Thanks again. gman Glad to help! -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
#3
|
|||
|
|||
Again, answers in-line...
gman wrote: Hi, Yes, you're right, which is what I was doing in Notepad. either way, I still have to do another save regardless of how I do it. Do you know why one cannot save as .html in the Save As menu and have it work properly? When I do it that way all I get when I open the file for preview in the brower is just the text of the code, not the photo which should appear. Without being able to watch exactly what you're doing, I'll guess from the description earlier in the thread that you're typing the HTML codes into the Word document exactly as you'd expect to see them in Notepad, but using merge fields in the places where file names belong. When you use Word's File Save As to convert this to an .html file, Word is trying to preserve *what you see on the screen*. To do that, it's converting each bracket to the HTML code < and each bracket to > . All the other HTML special characters are being similarly translated. The result is an HTML file that displays what *looks like* (but isn't really) HTML code. I don't know what else you can do other than what you're doing now -- saving as .txt and changing the extension (and I'll repeat that you don't need Notepad, just use Windows Explorer's rename command to change the extension). I'm sure some HTML editor -- maybe FrontPage -- can do merges; but I don't maintain any web sites so I've never looked into it. The /n switch did stop a blank document from opening when I started Word, but when I then open a new blank document it opens in that window that started. I would like the first document to open in its own window as do the second, third, fourth, etc. documents. Is there any way to do this? No. That's just the way Word works. Also, when Windows Explorer is open (and open to a particular file, let's say My Pictures) and it is partially behind another window, if you click on the Windows Explorer window in the right panel, for example, to bring it forward, the file that is open to show its contents will change unless you click exactly on it / its icon or horizonally to it in either direction. If you click next to a different file (and not even on the file's icon / name itself) in either hrizontal direction, that file opens to reveal its content, so you have to go back and select the file that was originally open and showing its contents. One should have to click directly on a file name / icon or on the +/- to have the file reveal its contents and not have this happen by clicking anywhere in the horizonal direction to that file. Sorry, I don't have any idea what you're talking about here. In any case, it isn't a problem with Word. Here is another situation: My browser window is fully open. I open a Word document. I click anywhere in the browser window or on a feature and Word automatically minimizes itself. I have AOL, BTW. Is there anyway to stop this automatic minimizing from happening? If one clicks on the desktop, it doesn't minimize, so it has to do with the browser. Again, I don't have AOL -- wouldn't touch it if you paid me -- so you'll have to ask somebody else. gman Freedman" wrote: I think you should be able to save from Word as a .txt file and then just change the file's extension to .htm or .html. You don't need Notepad to do that. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Portable Templates | Microsoft Word Help | |||
Group Templates on new server | Microsoft Word Help | |||
Problem with word templates | Microsoft Word Help | |||
Bring custom toolbars with templates | Page Layout | |||
Templates in too many languages. Only need English. | Microsoft Word Help |