This is my problem too, because it is my second work in Word VBA and I can't swich so good from Excel VBA in which I'm programing for 2 years now. Personaly, I don't like Word Objects, Properties and Methods because they are not so intuitive as in Excel.
Maybe some1 else knows how to resolve my...
But my problem is that test:
"If .EndOf(Unit:=wdParagraph, Extend:=wdExtend) Then
i = 100
End If"
does not do what I whant (make i=100 and stop inserting "_"), and I nead good version of this part of the code. I nead test which will indicate end of the line...
I nead to make macro wich will make line in some rows of text.
for example...
"Welcome to an On-Line Biology Book Table of Contents.
NOTES: These pages have been recently (2/97-present) revised and updated. Please let me know your thoughts...
I have the same error number 3669, message is different - "3669 Execution terminated". I only have this problem while performing SELECT queries that return a great amount of rows (more than 60000, with an average length of 100 bytes each row). Maybe is this problema same for you...
modul:
Dim x As New Class3
Sub Register_Event_Handler()
Set x.appWord = Word.Application
End Sub
Class3:
Public WithEvents appWord As Word.Application
'-----------
Private Sub appWord_DocumentBeforePrint(ByVal Doc As Document, Cancel As Boolean)
MsgBox ("You can't print!")...
I'm looking for solution on disabling printing for some users using VBA macro. Someone told me that I can do it with controling API. Can someone give me some tips how can I do it?
Tomislav
Thx
How to disable printing nd editing in MS Word socument with VBA macro?
I nead to disable printing for some users, and I nead to protect word document from editing. I can't find nothing that I can use for that two things. Potection with password is no good...
Thx!
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.