Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 09-21-2009, 09:11 AM   #1 (permalink)
Registered User
 
gi37ng's Avatar
 
Join Date: Sep 2009
Location: Channel Is
Posts: 12
OS: Win XP


Macro form to Text - MSWord help

I have a macro form on MSWord(2003) and i want to fill it in and have it as text, say at the bottom of the page, so i can copy and paste it. Is this possible, if so, how do i go about it?
Thanks in advance.
gi37ng is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-22-2009, 01:29 AM   #2 (permalink)
TSF Enthusiast
 
Join Date: Apr 2008
Location: Australia
Posts: 561
OS: Vista


Re: Macro form to Text - MSWord help

Hi gi37ng,

Is this a userform, or a 'form' document using formfields? If you've got the text on a userform, why do you need to put it on the page before copying & pasting? Surely you can use the userform to insert the text wherever you want, without the need for copying & pasting. The same applies to text in formfields.
__________________
Cheers
macropod
(MS MVP -Word)
macropod is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2009, 05:21 AM   #3 (permalink)
Registered User
 
gi37ng's Avatar
 
Join Date: Sep 2009
Location: Channel Is
Posts: 12
OS: Win XP


Re: Macro form to Text - MSWord help

Thanks for your reply,

It's a 'form' document using formfields.
Basically i need the user to fill in this form and then i need to transfer the information entered/options selected into a webapp. Copying the whole form obviously doesnt work and its time consuming having to copy and paste each part. However, i still need user to use the form. Back when we didnt ask them to fill it in, information was missed out and there was a lot of back and forth to just get all this information. Does this make sense?
gi37ng is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2009, 05:59 AM   #4 (permalink)
TSF Enthusiast
 
Join Date: Apr 2008
Location: Australia
Posts: 561
OS: Vista


Re: Macro form to Text - MSWord help

Hi gi37ng,

You can do all that without using a form. You can use formfields instead, each with an attached 'on exit' macro to validate the entry - much the same as you might be doing now via the form. That way, there's nothing to copy.

Nevertheless, what you can do with a userform is to have its contents populate a bookmark located wherever you need it in the document. If you prefer, each field on the form can populate a different bookmark. To populate a bookmark, you could use code like:
Code:
Sub UpdateBookmark (BmkNm as string, NewTxt as string)
Dim BmkRng as Range
With ActiveDocument
  Set BmkRng =.Bookmarks(BmkNm).Range
  BmkRng.Text = NewTxt
  .Bookmarks.Add BmkNm, BmkRng
End With
Set BmkRng = Nothing
End Sub
where the calling routine passes both the bookmark's name (BmkNm) and content (NewTxt) as parameters.
__________________
Cheers
macropod
(MS MVP -Word)
macropod is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2009, 06:21 AM   #5 (permalink)
Registered User
 
gi37ng's Avatar
 
Join Date: Sep 2009
Location: Channel Is
Posts: 12
OS: Win XP


Re: Macro form to Text - MSWord help

I'll try that. Cheers!
gi37ng is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2009, 08:36 AM   #6 (permalink)
Registered User
 
gi37ng's Avatar
 
Join Date: Sep 2009
Location: Channel Is
Posts: 12
OS: Win XP


Re: Macro form to Text - MSWord help

No luck.
Any idea on how to get it at text to copy and paste manually into the webapp?
gi37ng is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 09-22-2009, 04:37 PM   #7 (permalink)
TSF Enthusiast
 
Join Date: Apr 2008
Location: Australia
Posts: 561
OS: Vista


Re: Macro form to Text - MSWord help

Hi gi37ng,

It's difficult to help when your response is "No luck". Perhaps you could share a little more detail on what the problem is.
__________________
Cheers
macropod
(MS MVP -Word)
macropod is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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




All times are GMT -7. The time now is 08:01 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85