How To Set Up Global Constant / Variables for A Document

N

Nick Calladine

I want to be able to setup global variables and assign document variables to
them to use through out the rest of my document sub procedure .... how do i
do this

i have created a module which i declared the items

Option Explicit

Public tblEmployees, tblTotal As Table
Public intRowNo, intColNo As Integer
Public strEmployeesName, strTelepayNumber, strRatePerHour, strHoursWorked,
strGrossWage As String

but how do i assign the through the module not the the documents subs... as
i keep getting an error

How should i do this correctly...
?????
 
W

Word Heretic

G'day "Nick Calladine" <n i c k c a l l a d i n e @ n t lw orl d .
c o m (remove all spaces)>,

to assign the doc vars, you will need a routine that runs on AutoOpen
to see if its a document of the correct type, and if its is, extract
the variables into your public vars.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


"Nick Calladine" <n i c k c a l l a d i n e @ n t lw orl d . c o m
(remove all spaces)> reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top