HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Microsoft, Visual Basic, Office program, how to ge...
Operating System - Microsoft
1828871
Members
2552
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 07:58 AM
02-12-2001 07:58 AM
Microsoft, Visual Basic, Office program, how to get a reference from a Word created by a macro ??
Hello hp experts:
Does anyone know how can I get a reference for a Word.Document which is created by a microsoft built-in macro ? so that I can make some modification to that Word once I get a reference to it.
The thing is this:
In Visual Basic,
if you got
'-------------------------------
Dim pt As New PowerPoint.Application
pt.Commandbars.FindControl(Id:=684).Execute
'-------------------------------
It will open a Power Point file and pop out a window that let you choose the options and then it will convert that Power Point file to Word document. That newly created Word document will show as "Document1". but I need to make some modification to that file, so I need to get a reference to that newly created Word document. I try
Dim wordtest As Word.Document
Set wordtest = GetObject( , "Word.Document")
and it does not work. Does any one know how to get a reference for that newly created word document ? Thank you very much for your help.
Sincerely,
Nathan
Thanks.
Does anyone know how can I get a reference for a Word.Document which is created by a microsoft built-in macro ? so that I can make some modification to that Word once I get a reference to it.
The thing is this:
In Visual Basic,
if you got
'-------------------------------
Dim pt As New PowerPoint.Application
pt.Commandbars.FindControl(Id:=684).Execute
'-------------------------------
It will open a Power Point file and pop out a window that let you choose the options and then it will convert that Power Point file to Word document. That newly created Word document will show as "Document1". but I need to make some modification to that file, so I need to get a reference to that newly created Word document. I try
Dim wordtest As Word.Document
Set wordtest = GetObject( , "Word.Document")
and it does not work. Does any one know how to get a reference for that newly created word document ? Thank you very much for your help.
Sincerely,
Nathan
Thanks.
Totally-Rebuilt by God
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP