Re: Automating steps to copy URL from IE into Word

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Larry,

Inside an html document, VBScript is contained between script tags. You
don't even need to have a document "body" that generates a document in a
window but you generally do. However, script in an html file is subject to
the user's security settings for IE and can make results hard to predict.
On the other hand, you can create an html file and convert it to an hta file
(just by changing the extension) and it will operate like a standalone
program outside the IE restrictions but with all the tools of DHTML and vbs.

Steve



"Larry" <larry328NOSPAM@xxxxxxx> wrote in message
news:%23SDoyPoVFHA.2768@xxxxxxxxxxxxxxxxxxxxxxx
>> What might work better for you would be to write some VBA for a Word
> template and have your VBA launch an instance of Internet Explorer.
> That
> should give you access to the document properties for any page opened
> with
> that particular instance of IE.
>
> That would be great. Then I would put the appropriate code in the
> webpage document and it would run when the webpage was opened?
>
> Except, doesn't the text in the webpage already have to be selected when
> the procedure is started? Using Word to open the Webpage seems to be
> doing it backward.
>
> Also, this idea of executible code inside a html file is very new to me.
> You don't see the code displayed in the visible web page. So what is it
> that triggers it?
>
> In any case, how would I start to set this up?
>
> Larry
>
>
>
>
> "Steve Yandl" <syandl@xxxxxxxxxxx> wrote in message
> news:KbSdnSiAgrJP2B_fRVn-pQ@xxxxxxxxxxxxxx
>> Larry,
>>
>> The original incarnation of the program was created in response to a
>> question on a newsgroup. It basically created a new text file that
> was
>> given a name based on date and time. It grabbed the text as a string
> plus
>> the URL as a reference. People in the newsgroup where I provided it
> started
>> asking for more features, like the option to choose some other file
> naming
>> convention, the option to add comments, etc. After using it a bit
> myself, I
>> found it would work better for me if I used Word because I could then
> use
>> Word's find feature to locate text by key term or phrase. I
> incorporated
>> bookmarks with my date time strings from the previous version so I
> could
>> quickly zoom in to an approximate time once the archive document got
> large.
>> For my own use, I wasn't concerned about the formatting, only the
> actual
>> text, the URL, and the date/time reference. I added the ability to
> add
>> comments based on feedback on the earlier version but like you I could
> live
>> without that and might make a more streamlined version for my own use.
>>
>> I might experiment with using the clipboard for the text seletion
> itself and
>> that might retain the font properties.
>>
>> What might work better for you would be to write some VBA for a Word
>> template and have your VBA launch an instance of Internet Explorer.
> That
>> should give you access to the document properties for any page opened
> with
>> that particular instance of IE.
>>
>> Steve
>>
>>
>>
>> "Larry" <larry328NOSPAM@xxxxxxx> wrote in message
>> news:OMMQTzkVFHA.612@xxxxxxxxxxxxxxxxxxxxxxx
>>
>> Steve,
>>
>> This is great, it's wonderful to know that such capabities exist, but
> this
>> program is geared for a different set up from mine. Here are my
> thoughts
>> and suggestions.
>>
>> What this does is append each entry to a _closed_ Word document. This
> is
>> perfect for accumulating a lot of material from the web in a kind of
>> research project. However, if the document is open, it opens a second
>> instance of Word without my custom toolbar and prompts the user to
> save it.
>> So that would have to be changed. The program needs to insert the
> material
>> into open document. And it must not open additional instances of Word
> if
>> Word is already open. That creates problems for me.
>>
>> Also, I don't need a single saved document into which to put the
> information
>> from many different such operations. Each such insert could go into
> its
>> own, new Word document, which I could then save manually.
>>
>> When the application opens, it prompts the user for a comment, which
> then
>> makes it necessary to scroll down to where the button is to execute
> the
>> program. It would be better to skip all that and have the whole
> operation
>> take place in one step. I could do without the comment, since I'm
> going to
>> be working on the Word document into which I've inserted the material,
> I can
>> add whatever I want directly in the Word document.
>>
>> Another thing. This does not carry over character formatting of the
>> selected text, such as italics. I don't supposed that would be
> possible?
>> If it's not possible, what I might want to do is change the program so
> that
>> it inserts the title and url into a new Word document, while copying
> the
>> selected text in the webpage AND switching the focus to the Word
> document,
>> so then all I have to do is paste the (formatted) text underneath the
> title
>> and url.
>>
>> Thanks,
>> Larry
>>
>>
>>
>>
>>
>
>


.



Relevant Pages

  • Re: Newbie: cannot get images to display if navigate to my webpage
    ... My html had already done exactly what you were suggesting, ... If I put a link to myPage.html on a different *local* webpage ... opens myPage.html but the pics are now broken. ... Make sure you have uploaded your images. ...
    (comp.infosystems.www.authoring.html)
  • Re: Restricted Site
    ... Does the HTML source code contain the "Mark of the web" line similar to the following? ... I recieve an email as a reciept as an *.html file attachment from a vendor ... still opens the same way. ... I am running Windows XP SP2. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Issue when opening html file in Word
    ... When I open a particular HTML file in Word 2007, ... set of HTML letters to docx files. ... is saved in the docx file as is and doesn't get rendered until someone opens ...
    (microsoft.public.word.docmanagement)
  • RE: Link betw een 2 html files created from Visio
    ... I think I understand what you are saying and I have tried this and it does ... link from I went to the shapes and navigated to into the Webpage folder Visio ... created and linked to the html page for that page. ... other html file. ...
    (microsoft.public.visio.general)
  • Re: Converting COBOL print file to HTML help
    ... 'I' don't want to send it via HTML. ... I have a single 'engine' that takes a print file and emails it ... When they open it it opens in a ... text file or a HTML file depending on..... ...
    (comp.lang.cobol)