Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to enable 'Repeat Header Rows' in a Word Table from VBA?

Posted on 2004-04-07
2
Medium Priority
?
2,074 Views
Last Modified: 2012-05-04
I have created a Word Table in Word 2000 and want to enable the 'Repeat Header Rows' feature forthe table on each new page from VBA. So far, I havent been able to find the VBA call to do this?

Help?

0
Comment
Question by:JohnELewis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 1000 total points
ID: 10777619
How about

dim wd

set wd = wscript.createobject("word.application")
wd.Application.Visible = True

wd.Documents.Open "c:\\temp\\Doc1.doc"
wd.ActiveDocument.Tables(1).Rows(1).Select
wd.Selection.Rows.HeadingFormat = True
wd.ActiveDocument.Save
wd.ActiveWindow.Close
wd.quit
set wd = nothing
0
 

Author Comment

by:JohnELewis
ID: 10781891
Thank you.

Worked a treat!

John
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Suggested Courses

715 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