I have a small query regarding the Excel VBA. I have created a VBA formand four text boxes init. Once I enter the data in the textbox, I needthose values to be moved to worddocument bookmarks.Can someone help me in writing this code?
You can do that via ADO. And you'll need to pick the app that will run theshow. I usually start in Word and pull the data in from Access, which I usemore than Excel. But you can do it the same way by using similar code and anExcel ADO Provider (driver). It's kinda like you tell Word to link up toExcel through this ADO data wrapper (like a tunnel) and you tunnel in andpull what you need and then place the info into the bookmarks. Although youcan also run the show from Excel to deal with Word that way, which may bemore comfortable for you.I have a demo of how it works...with an article explaining the process inmore detail and a demo you can download to play with and also open code youcan experiment with and use to get you started.See this link: http://www.mousetrax.com/techpage.html#autoforms. Scroll downto the Please Fill Out This Form series and locate the article # 5 forDatabase Connectivity. Read the article and download the sample. You'll needto change the Access JET Provider line of code to the Excel version...whichyou can find here: http://www.connectionstrings.com/And as for the bookmark and Word end of it...I have a pile of articles alsoat that main autoforms link that will show you how to work around thoseissue...so check out those articles, too.