Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2012, 12:59 PM
mawallace mawallace is offline Problems with importing text and formatting lists Windows 7 64bit Problems with importing text and formatting lists Office 2010 32bit
Novice
Problems with importing text and formatting lists
 
Join Date: Jun 2012
Posts: 6
mawallace is on a distinguished road
Default Problems with importing text and formatting lists

I have been playing with this for too long!!



I have two documents:-

Communications
charity services

I want to select the text from part of the charity services document, paster into communications, and then make the numbering line up. But it just does not work for me!

I have uploaded three files:-

Communions - Showing the document
Charity services - From which the text is being imported
Result -showing te result
Required result - showing what I am trying to achieve - ie the list and numbering going along fine!

Any idea where I am going wrong!

I am doing this as a macro as there a number of documents I need to send the paragraph too - depending on results - and I am testing this at the moment

Script as the macro is:-

Sub accounting()
'
' accounting Macro
'Dim myPath As String
myPath = ActiveDocument.Path & "\charity services.docx"
Set o = Word.Documents.Open(myPath, , , , , , , , , , , False) 'False means open test.doc 'INVISIBLE'

Set chk2 = o.Range(Start:=o.Bookmarks("acc").Range.Start, End:=o.Bookmarks("endacc").Range.Start)
chk2.Copy
Selection.GoTo What:=wdGoToBookmark, Name:="acc"
Selection.Paste



End Sub
Attached Files
File Type: docx required result.docx (32.5 KB, 7 views)
File Type: docx Communication.docx (27.4 KB, 8 views)
File Type: docx charity services.docx (24.1 KB, 8 views)
Reply With Quote
  #2  
Old 06-11-2012, 04:35 AM
macropod's Avatar
macropod macropod is offline Problems with importing text and formatting lists Windows 7 64bit Problems with importing text and formatting lists Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Since the numbering in your 'Communication' document is done manually, but your 'charity services' document has automatic numbering, you're not going to get the numbering sequence to work with any degree of fluidity. Both documents should use the same automatic numbering scheme if you want this to work properly.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with importing text and formatting lists Convert lists of text in Word to excel Grosspsych Excel 5 02-06-2012 08:03 PM
Importing Selected Text Into Word Document Mooseman60 Word 1 10-06-2011 03:18 AM
Renumbering lists for hidden text? christie Word 1 09-04-2011 05:21 AM
Problems with importing text and formatting lists Problems Importing Pictures Maurices5000 Word 2 02-03-2011 07:57 PM
Problems with importing text and formatting lists Formatting Problems when Pasting headcase Word 1 02-01-2011 02:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft