vba - Pulling Data from MS Word Textbox into Excel -


I have anywhere in the area of ​​300 evaluated forms and they have to be opened in turn and some data should be excluded in Excel. It seems to me some VBA so far I have this ... objWdDoc error as object dim as objWdDoc error set as object objWdApp = GetObject (, "Word.Application") if Err.Number & lt; & Gt; 0 then end objWdApp = CreateObject ("Word.Application"). If the error occurs, then go to error. Set up objWdApp = SetObject ("Word.Application") objWdDoc = objWdApp.Documents.Open (Filename: = "U: \ PDR \ NewProcess \ Mike Hibbert.docx") objWdApp.Visible = False Range ("A1 ") = ObjWdDoc.textName.Value objWdApp.Quit set objWdDoc = nothing set objWdApp = nothing

but this is the range (" A1 ") =" objWdDoc.textName. To understand the error at run time

error 438

it has not run through all the objects in a folder etc., but at this level I have some word in Excel I would like to get the data.

S Mike


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -