Need help inserting range data from Report doc to Form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am trying to write a macro In Word 2003. My goal is to automate
filling a word template called Document 2 with three pieces of data
(access no., Narrative, Report no.) from Report Doc. I want to run my
macro from any Report Doc. All the data starts at character position
40.
I want to read a range in line 2 (access no.) 6 characters in length. I
want to read a separate range in line 4 (narrative) 40 characters in
length. and a third range from line 17( report No.) 12 characters in
length.
Access number is inserted into textbox.doc2(bookmarked as
"Text1")
Narrative is inserted into textbox.doc2 (bookmarked as
"Text15")
Report No. is inserted into textbox.doc2 (bookmarked as
"Text5")
I also want to save filled in template as Report no.
XXXXXXXXXXXXXXXXXXX. doc

I have tried using the clipboard numerous ways but my program will not
"reach down" and choose the correct selection of data and put them in
the right text boxes. (Will the clipboard not let itself be an array?).
When I run my macro It grabs the top choice and fills the corresponding
text boxes with the same data. I know if I create 3 separate range
variables and insert them in the boxes, I will achieve my goal, but I
need help
trying to find the right set of commands to insert in the textbox. Can
anyone assist me with the code commands.This seems to be simple task. I
appreciate any help. Thanks

.



Relevant Pages

  • Need help copying 3 range data and insert into form
    ... I am trying to write a macro In Word 2003. ... (access no., Narrative, Report no.) ... I want to read a range in line 2 6 characters in length. ... I know if I create 3 separate range ...
    (microsoft.public.vb.general.discussion)
  • RE: Convert Macro to run in 2007
    ... I would help if you would tell us what this macro is supposed to accomplish. ... if one of the lines scaned was greater than 80 characters, ... Dim oDoc As Document ... ' If the report has lines greater than 80 columns with format characters ...
    (microsoft.public.word.vba.general)
  • Re: Address can not be more than 30 characters
    ... Its a macro. ... Put in a module and execute from there. ... I am sending this report to a thrid party who can not have the ... > address field be more than 30 characters. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Column Width Template Question
    ... (in a non-proportional font) ... I think I'd set the width manually or use a macro to make it exactly as wide as ... I currently have a report that I export into Excel. ... Width always needs to stay at 50 characters wide. ...
    (microsoft.public.excel.misc)
  • Re: Date range on reports
    ... box to your report with a control source like: ... > In the Database window (Database window: The window that appears when you ... > In the New Form dialog box, click Design View, and click OK. ... > Begin by clicking Macro Names to display the Macro Name column. ...
    (microsoft.public.access.reports)