+ Reply to Thread
Results 1 to 4 of 4

Is It Possible To Create An IE Page Using VBA?

  1. #1
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Is It Possible To Create An IE Page Using VBA?

    Hey Everyone!

    Is it possible to create an IE page using VBA? My overall project is much more complex than this, but for the sake of simplicity, have a look at the example below:

    Please Login or Register  to view this content.
    Now, obviously there is a ton more code, etc above and below this but none of it is relevant to my question.

    What I am wondering is if there is a way to now open an IE Window that displays the contents of my Body string?

    Thanks a million for your help!!

  2. #2
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Re: Is It Possible To Create An IE Page Using VBA?

    Hey Everyone,

    So, been up all night Googling this and reading through forum after forum and come up with ziltch - I don't think this is possible. So - does anyone have a suggestion of how else I could accomplish this?

    Let me explain the end goal in a little more detail. Basically, this vba script opens a large user input with a few hundred different fields. Based on the user's input, the fields move and change, look up data from the other sheets in the book, etc. At the bottom of the form is a Command Button that takes all the information captured in the form and puts it into a new email - hence the HTML tagging that is currently captured in the Body string. Now, the issue I am facing is that when my user base is working out of OWA instead of Outlook (which is more common then I realized) then they are not able to use this tool. No Outlook means no email opens. So, what I am trying to do is add a second button at the bottom that will open the email text in a different media, such as IE.

    If I could get it to open in an HTML Document or a Word Document, that would be fine. Even a big message box would be fine. It just needs to be something that will read the HTML and format/line break accordingly, instead of displaying the tags as part of the text. It also needs to display in a way that the text can be easily copy/pasted. Idea being, the users working in OWA would manually open a new email, generate the template using this tool, then copy/paste the results into that new email.

    Any help is greatly appreciated. I am at a loss on how to accomplish this...

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Is It Possible To Create An IE Page Using VBA?

    Please Login or Register  to view this content.
    That should work I think. Change path to somewhere you have access to on your drive and is unlikely to be an existing file as it will be overwritten.

  4. #4
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Is It Possible To Create An IE Page Using VBA?

    Would it be simpler just to create a form (containing all the options) and have it add and entry to a DB with the user options they chose (after all options have been chosen)?

  5. #5
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Re: Is It Possible To Create An IE Page Using VBA?

    This works great except for one thing: the oFile.Close and oFile.Delete commands cause the file to open and then immediately close - you never actually see it. However, overwriting the file over and over does not seem to cause any errors, even if the file is already open, so I just removed those two lines and viola - it works like a charm.

    Thank you soooo much - I really, really appreciate it!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Trying to create a summary page
    By Xaos in forum Excel General
    Replies: 18
    Last Post: 07-14-2012, 03:12 PM
  2. Macro to create formula for Main Page from data on other page
    By Drew Davis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2011, 06:35 AM
  3. Create nth copy of page 2, then reference first page with incremented row
    By leesjunkmail001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2009, 02:21 AM
  4. How to create an output page
    By anasleco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2009, 11:53 AM
  5. Replies: 2
    Last Post: 04-02-2005, 11:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1