Hi everybody,
I have to declare a Globale variable in VBA so that I can reuse it in another function (sub).
What is the syntax please ?
Can I declare it everywhere in my project ?
Thank U
Ok. thank U very much but which sub must I call and from which sub, and what is the code I must to link with the button for printing ?
Thank U for your interest !
Yes but their are various reports to print simultaneously and each one doesn't have the same number of page.
If I do like that, for each report printed the page number restart at zero.
But all those reports make one general report.
Ok you are right, their is no need to create a field in the table to make the sum... I have tried as you say and it's ok.
Thank U very much for your interest.
but it don't works" means it returns me that the object is not in the collection.It don't find any object with this name....
Thank U for your interest.
Thank U Gerry for your interest.
In fact , i Would like to do something like that:
ActiveDocument.FormFields("text3").Result = "TEST"
With ("text3") as variable, by example:
Dim namefield as string
namefield = Recordset("field_table")
ActiveDocument.FormFields("namefield").Result = "TEST"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.