VB, Visual Studio, Office 2003
I’ve inherited an array of software installations on my workstation (at work).
My OS is Windows 2000, and the installed apps include:
Office 2003 Standard Edition, which comes with VB 6.3 and the dialog constants (wdDialogTableWrapping, wdDialogToolsAutoCorrect, etc) (which are called namespaces, I think, in Visual Studio .net lingo).
VB 6.0 Working Model,
Microsoft Visual C++ Professional Edition,
MSDN Library for Visual Studio 6.0installed (VB 6.3 is reached only through Office 2003 apps).
The working model of VB has no built-in help, so using this is really frustrating, I cannot F1 anything. Even help for VB 6.3 has empty placholders for the graphics (links work, but graphic words at the top of each help page are blank squares).
My job is to customize Word 2003—to create a template, with limited number of styles (ProtectStyles), and any automation that will ensure corporate docs coming from different places retain some common layout. Definitely I’ll have lots of macros. And I assume they need to be written in VB 6.3 (what’s the difference from .net?)
Given the tools I have, rely a lot on online info, user groups (MS or not).
I’d like to use Visual Studio, but wonder which version I can/should use (and I need to figure out how to attach Visual Studio project to a Word docuemnt template). Also, how does one attache get the wdDialog library to Visual Studio. Does anyone have a descriptive compendium of the arguments for WdWordDialog constants?
I have books: Writing Word Macros by OReilly, VB 6 (Visual Studio series) by Deitel and Deitel. None addresses this. The online tutorials from MSFT for creating windows Applications with VB use unidentifiable versions of Windows, VisualStudio, .Net servers—is there a decipherable compendium available for using (backward compatible Office 2003 tools? Where else to go to find help to walk me through creating custom interface for Word 2003?
Thanks Rob, but I need to create an input form..and I'm wondering how to lock things
Hi Rob,
I've recorded macros before, but I want to make some input forms for adding standard data to title/header/footer (name of project, book number, title of book, etc)
Also, I want to lock the stylesheet, or have a tool to run through the doc and do a cleanup.
Given that I want to go beyond simple macro recording, I started looking around and that got me lost.
For example, I'd like to change the values on some of the default dialogs (if this is possible) or to create a new tab (or disable other tabs on the tabbed Properties dialog.
My "research" has brought me to this site. I don't even know what all I have available to me with the application set I currently have.
Recorded macro vs wdDialogFilePageSetup
RobDog888,
Thanks! Your example is what I'd get if I were using the macro recorder.
However, advice from MVP people indicate its "far more efficient to use the wdWordDiaglogs." So I've been looking for the treasure map that identifies how to use these wdDialogs.
Here's an example: I've created a TableFix macro (using record macro method) that autosizes the table to contents, sets the cells in a table to TableCell style, the first column in same table to TableCellBold, the first row to TableHeading as well as Heading Rows Repeat. Sad thing is, the last setting (HRR) is a toggle when using Record Macro, so I need verify each table in a doc by navigating into the menu to see whether that toggle is set or unset by virtue of running the macro. It looks like I can set most of these using wdDialogTableAutoFormat, but I need the Rosetta stone for arguments HeadingRows,FirstColumn--and where are the settings for the Table Properties dialog (allow <num> spacing between cells, don't permit cell to break across pages)?
A big want: I want to change/add labels on a predefined dialog--or if that's disallowed, then replace a predefined dialog with my custom dialog--without losing performance.
Where would I find the treasuremap (online download, training, MS press book, or combination thereof) for using wdDialog constants (i.e., are the arguments Boolean, text, numeric, what's the defualt settings, etc).
A good roadmap would be for you to replace the code sample you provided with equivalent in wdDialog code.
What does it mean when wdDialogSearch has no arguments? What's the purpose of the arugment "Category" in the wdDialogTableFormatCell?
I appreciate your help!