#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default 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/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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/





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default 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/



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Excel count of 1 word if found in multi-word cells of column Function_Challenged Excel Worksheet Functions 1 August 27th 09 12:08 AM
Excel 7, paste linked to word becomes black when word pdf'd Surffreak Excel Discussion (Misc queries) 0 June 1st 08 12:17 AM
Copy from Word to Excel, and retain indent, plus word wrap Eric Excel Discussion (Misc queries) 1 March 9th 07 03:15 AM
Print labels by using Excel data in a Word mail into word Zoey Excel Discussion (Misc queries) 1 November 1st 05 09:08 PM
Embedded word doc changed to image-need to change back to word. cflores Excel Discussion (Misc queries) 0 January 23rd 05 06:45 AM


All times are GMT +1. The time now is 10:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"