converting web page to MSWord doc

I am using Word 2002 with Visual Basic 6.3 and attempting to write a macro to convert web page to Word doc, format text and delete forum "Reply" links. would like to take web page source and manipulate text or copy/paste then run macro. having a problem identifying hypertext links to delete from page. What is the best approach and what are possible keywords in order to leave a nicely formatted Word doc?
[416 byte] By [HotKeeper] at [2007-12-24]
# 1

Sorry but these forums are for VB .Net, not VB6.

If you want to download and run the free VB Express edition of Visual Studio than you can code this project fairly easy (VS05 has some nice and easy ways to get a web page and filter through it for hyperlinks or other HTML elements).

Plus you can get help from these forums if you use .NET.

All that said, if you look through the source of a web page, anywhere you find "<a href" you know you're entering a hyper link (I realize for matting can change and a hyperlink may not have href as the first attribute, but it should).

rkimble at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
I would rather code in VB.NET but this is the version that comes with the Macro Edit in Word 2002. I assume that VB.NET will run on an installed dotNET CLR with Word 2002 but how do I substitute VB Express to edit the macro code? And does the VB Express IDE know to call the code in the open web page or do I need to reference the open web page somehow? Can I get a student version of Visual Studio in which to develop for Word 2002? Thanks for the timely reply.
HotKeeper at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3

Sorry, I didn't realize you were talking about a VBA macro (I thought you meant macro in a generic sense because you listed a specific version of VB6).

If you want to use VB Express you can, you'll just be creating a small stand-alone application that serves as a tool to accomplish your goal. Instead of coding inside of Word, you'll create an app that opens an instance of Word and inserts the text of the reformatted web page.

rkimble at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4
Good idea; I'll back out of Word and create a stand-alone, but prefer to use VB.NET or Visual Studio for the power they provide, as I am learning to develop for AutoCAD and Civil 3D to customize drawings.
HotKeeper at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5

Definately use Visual Studio 2005. It will make things much easier.

This sounds like a fun project! We're currently designing (and soon coding) a SolidWorks Bot for auto drawing generation.

rkimble at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 6

1. What is the difference between Visual Studio 2005 and Visual Basic.NET?

2. Is VB.NET for VS2005 called VS2005?

3. I don't think the copy I have is 2005 but VS 2003 evaluation copy instead. In that case, would it be better to use VB Express or the 2003 limited time evaluation edition?

4. There is a lot of VBA code out there, but not so much .NET. For beginners, VBA seems more accessible to learning. With a background in VB 6.0, I find VB.NET quite different and more difficult, even though I had a course in VB.NET. I also realize that developers must be fluent in both, and to do so requires the software Integrated Development Environment. VBA is integrated with AutoCAD so that is where my work has been done of late, including AutoLISP, Visual LISP, ActiveX Automation and Diesel DCL (an arduous task to learn all of these and try to come up to speed as quickly as possible!). The VBA IDE packaged with AutoCAD Land Desktop 2006 is version 6.3. I realize VBA is different than VB 2005 but which version to better develop with?

HotKeeper at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 7

1. Visual Studio is a development environment (IDE), Visual Basic is a development language

2. No, VS2005 is the IDE, VB.NET is the language. C#, J#, Visual C++, etc are all languages that are supported by the Visual Studio IDE. You can use VS to code in any of those languages.

3. Probably better to use VB Express. The Express editions of Visual Studio are single language versions of VS05. So there is a VB Express, and C# Express, a Web Express - each one only allows you to develop in a given language or technology. Purchasing the full version of Visual Studio 2005 allows you to choose any of those languages to code in.

4. VBA (Visual Basic for Applications) is a lite version of Visual Basic classic. It more closely resembles a combination of VB Script and VB6 code.

Better is a relevant term - it depends on your objective. The VBA must run within some other application that hosts it. There are also limits to functionality. VB.NET is much more robust and allows standalone application to be created (but requires the .NET framework).

For the type of project you initially described though, I would say that VB.NET is a better choice than VBA.

rkimble at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 8

Thank you very much for the advise, I downloaded VB Express and will use it at work. I will also install the Visual Studio 2003 on the notebook at home until I can get a current copy of dotNET. Also just received the AppDev introductory training CD on Learning VB.NET from MSDN Flash eNewsletter https://www.microsoft.com/resources/msdn/subscription.aspx

Your support is encouraging. Again, thanks.

HotKeeper at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...