![]() |
VBA Word
Hi, This is from a userform that I have in word, but I don't think th
problem is really related to word as much as it is with how the cod reads: With ActiveDocument .Bookmarks("Text1").Range_ .InsertBefore Textbox1 .Bookmarks("Text2").Range_ .InsertBefore Textbox2 End With Userform1.Hide (The Beginning and the ends are there as well, I just didn't typ them) I am trying to create a Userform for a document template. I woul really appreciate it if someone could go t http://word.mvps.org/FAQs/Userforms/...ormContent.htm This only took me <5 minutes to go through their tutorial, but couldn't get it to work. It didn't like the .Range_ part. Thanks, Scot -- Message posted from http://www.ExcelForum.com |
VBA Word
You're missing a couple of things, Scott:
(1) This is an *Excel* VBA group. VBA is similar, but the object models are significantly different. You might want to take Word issues to microsoft.public.word.vba.beginners. (2) There are supposed to be periods in front of Bookmarks and InsertBefore at each instance. (3) There is a space between Range and _ in each instance. You also might want to go through the tutorial again, this time a bit slower. I've been fumbling my way through VBA for a little over a year now, and I have become very aware that good coding is a whole lot more than cut-and-paste. It's really hard to do something well when you don't understand it. Ed "Scottmk " wrote in message ... Hi, This is from a userform that I have in word, but I don't think the problem is really related to word as much as it is with how the code reads: With ActiveDocument Bookmarks("Text1").Range_ InsertBefore Textbox1 Bookmarks("Text2").Range_ InsertBefore Textbox2 End With Userform1.Hide (The Beginning and the ends are there as well, I just didn't type them) I am trying to create a Userform for a document template. I would really appreciate it if someone could go to http://word.mvps.org/FAQs/Userforms/...ormContent.htm This only took me <5 minutes to go through their tutorial, but I couldn't get it to work. It didn't like the .Range_ part. Thanks, Scott --- Message posted from http://www.ExcelForum.com/ |
VBA Word
Nonetheless, you'd be better off posting to the
microsoft.public.word.vba.beginners newsgroup. In article , Scottmk wrote: Hi, This is from a userform that I have in word, but I don't think the problem is really related to word as much as it is with how the code reads |
VBA Word
Thanks guys..I know, I've been trying to join those other groups bu
still waiting for activation. In the meantime I was able to figur out my problem. Thanks, Scot -- Message posted from http://www.ExcelForum.com |
VBA Word
news://msnews.microsoft.com/microsof....vba.beginners
No activation is required. -- Regards, Tom Ogilvy "Scottmk " wrote in message ... Thanks guys..I know, I've been trying to join those other groups but still waiting for activation. In the meantime I was able to figure out my problem. Thanks, Scott --- Message posted from http://www.ExcelForum.com/ |
VBA Word
Waiting for activation?!? If you can hit the 'net, you can get there!
Trust me - if you needed permission, there's a lot of us who would have never got into here! <g Here's a list to get you started: http://communities.microsoft.com/newsgroups/default.asp Ed "Scottmk " wrote in message ... Thanks guys..I know, I've been trying to join those other groups but still waiting for activation. In the meantime I was able to figure out my problem. Thanks, Scott --- Message posted from http://www.ExcelForum.com/ |
VBA Word
Don't wait. Use a newsreader instead of a web portal. Or even Outlook
Express (for which, see: http://www.mvps.org/dmcritchie/ie/oe6nws01.htm ). In article , Scottmk wrote: Thanks guys..I know, I've been trying to join those other groups but still waiting for activation. In the meantime I was able to figure out my problem. |
All times are GMT +1. The time now is 07:22 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com