Solved

Need to convert Wordperfect Macro to Office Word

Posted on 2008-06-18
4
711 Views
Last Modified: 2012-08-13
Need to convert this macro to Word. The wordperfect macro is below.  

Application (A1; "WordPerfect"; Default; "US")
FileSave ("C:\testfolder\file.prn"; ASCIIStandard!)
Close ()

I recorded a macro in Word 2003/2007, saving it to the location, however, I do not know how to migrate the ASCIIStandard over. It keeps saving it in a *.txt format.

I don't now much about programming in VB, any help will be appreciated.
0
Comment
Question by:awgit
4 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
How does ASCIIStandard differ from a text file?
Perhaps you could post the recorded macro and tell us what that does wrong.
0
 

Author Comment

by:awgit
Comment Utility
The problem was that it was saving the file as fileprn.txt instead of file.prn

I redid the Macro today and it seems to be working. Word does throw in a lot of additional information, is all of this required for the Macro to work?

Sub ALNT1()
'
' ALNT1 Macro
' Macro recorded 6/19/2008 by IT Network Services
'
    ChangeFileOpenDirectory "\\filer2\atlas\dept\rev\revact\"
    ActiveDocument.SaveAs FileName:="tmp1.prn", FileFormat:=wdFormatText, _
        LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
        :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
        SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
        False, Encoding:=1252, InsertLineBreaks:=False, AllowSubstitutions:=False _
        , LineEnding:=wdCRLF
    Application.WindowState = wdWindowStateNormal
End Sub
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now