Solved

Need to convert Wordperfect Macro to Office Word

Posted on 2008-06-18
4
716 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
ID: 21818145
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
ID: 21822508
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
ID: 22144462
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to compare ms sql hashbytes results within vb6 5 75
Spell Check in VB6 13 114
Added a column screws up code 5 57
Set email body to html using vbscript 6 41
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 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