|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Length of array elements in the ActiveDocument.GetCrossReferenceItems(wdRefTypeHea ding)
Can anyone tell me what the length of each element is in the following assignment?
myheader range myheader = ActiveDocument.GetCrossReferenceItems(wdRefTypeHea ding) I am having an issue that certain elements of the array returned are not complete, they are truncated and therefore I cannot parse the entire header as needed. Is there a way of specifying a longer length? |
#2
|
||||
|
||||
It seems to be truncating the text at 94 or 95 characters in my testing. I have no idea on how to entice GetCrossReferenceItems to return longer strings.
Code:
Dim arr() As String, s As Variant arr = ActiveDocument.GetCrossReferenceItems(wdRefTypeHeading) For Each s In arr Debug.Print s, Len(s) Next
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Hi
Jroger, i have posted one issue (Want to delete balnk line row from table with MS word using VBA code) Could you please help me ? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ActiveDocument.ContentControls(ID) not working | Tejas.T | Word VBA | 3 | 03-09-2015 06:50 PM |
wordapp.ActiveDocument.SaveAs Not Working | KSReynolds | Mail Merge | 1 | 07-18-2014 04:03 PM |
Using With ActiveDocument.Tables() | SuzeG | Word VBA | 1 | 01-08-2014 02:00 PM |
Convert String Array to Integer Array from a User Input? | tinfanide | Excel Programming | 4 | 12-26-2012 08:56 PM |
Array into ComboBox + Macro-Text into ActiveDocument | Vivi | Word VBA | 1 | 01-27-2010 07:03 AM |