I am running a macro through the normal.dot file. What I want to do is assign ActiveDocument.path to a variable. But when I do this I the error "Invalid Outside Procedure". What am I doing wrong?
My code:
path2file = ActiveDocument.path
sfile = FreeFile
Open path2file For Input...
I am doing a string search within a open Word Document. I know string exist in the document but my comparison is telling me that it can not find it. Could someone shed some light as to what I could be doing wrong?
Private Sub InsertSymbol(RedStrikeText)
With ActiveDocument.Content.Find...
I am having trouble testing what values I am getting in my variables. I know the command is "Print". I tried Print and just the variable but a error saying I need a object to use this command? How can I get my values to print?
I am trying to figure out this function. I know this function grabs lines out of your file. Could someone give more details as to how this function works?
Hi ,
I need some help on creating a macro. This is my first time using VBA. What I am trying to is take a existing .rtf file and search through it and find any string that has a strikethrough and a redfont. Once I find it I want to insert the symbol [& &] around the string to indicate that the...
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.