Discussion:
Need help in VBA-- WORD BASIC
(too old to reply)
Kirankumar
2004-09-23 13:16:50 UTC
Permalink
Hi All,

I have an application, which is written using WORD BASIC>
I want to edit the footer and want to user EDITREPLACE
function to replace the string inside the footer also.

Could any one let me know the command how to edit footer
in WORD BASIC. Please let me know if anyone has any idea.
I am desperate for solution. I have tried many ways but
it does not do it.


Thanks
Kiran
Shinya
2004-09-23 18:34:20 UTC
Permalink
I am getting the footer and header text like this, but can you just assign
the text to these?

Word.Application.ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).R
ange.Text
Word.Application.ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).R
ange.Text

Shinya
Post by Kirankumar
Hi All,
I have an application, which is written using WORD BASIC>
I want to edit the footer and want to user EDITREPLACE
function to replace the string inside the footer also.
Could any one let me know the command how to edit footer
in WORD BASIC. Please let me know if anyone has any idea.
I am desperate for solution. I have tried many ways but
it does not do it.
Thanks
Kiran
Robert Homes
2005-04-22 03:25:09 UTC
Permalink
Kira --

WORD BASIC is completely different from VBA. Word Basic was used in versions
of Microsoft Office back I think before 1997. All versions since then use
VBA. VBA is an "object driven" program. Word Basic is not.

Woody Leonhard wrote "Hacker's Guide to Word for Windows" covering Word
Basic. If you are going to be using Word Basic, you should look for a copy
of that. But if you are going to be writing any Office macros, you should
get a current version of Word and use VBA, it is far superior to Word Basic.

The VBA objects for Word have a "gateway" to WordBasic. I forget what it is,
but you can actually write a VBA program, and run Word Basic commands from
within the VBA program, but using a special WordBasic object. Search Word
VBA help for "wordbasic" and you'll probably find some help on this.

Good Luck.

Robert Homes
Post by Kirankumar
Hi All,
I have an application, which is written using WORD BASIC>
I want to edit the footer and want to user EDITREPLACE
function to replace the string inside the footer also.
Could any one let me know the command how to edit footer
in WORD BASIC. Please let me know if anyone has any idea.
I am desperate for solution. I have tried many ways but
it does not do it.
Thanks
Kiran
Loading...