Set MS Word paragraph list number?

Hello again,
Same legal document project, same headaches with Microsoft.

The script I’m writing gathers input from display dialogs then formats the information to be written into MS Word. The paragraph formatting changes throughout the document, and I’m using bookmarks to hold insertion points. Sometimes, an straight paragraph format gets inserted into a numbered list, and the numbering has to pick up again after that insertion.

In the code listed below, the paragraph needs to number 7 on the list. (This number changes based on other variables, else I would just hard code it.)

I’ve gone through the MS Word AppleScript dictionary and have been to http://www.microsoft.com/mac/developers/default.mspx?MODE=ct&CTT=PageView&clr=99-25-0&target=8b1c67f2-4e0e-4f6f-87d1-57043b2b00dc1033&srcid=&ep=8&rtype=2&pos=17&quid=ea43e09d-8bf8-4259-a20b-de8a2ed757aa with no luck.

If anyone knows the syntax of this particular command, I would greatly appreciate any help.


tell application "Microsoft Word"
		activate
		
		select bookmark "legal_07" of active document
		tell paragraph format of selection to set style to style list number

     -- here's the problematic line	
          tell list format of selection to set list level number to 7

		tell font object of selection
			set name to "Times New Roman"
			set bold to true
			set underline to true
			set font size to 12
		end tell
		--tell paragraph format of selection to set alignment to align paragraph left
		type text selection text var_lawcn01
		make new bookmark at active document with properties {name:"legal_02", text object:text object of selection}
	end tell

I get and Applescript error “Microsoft Word got an error: Can’t set list level number of list format of selection to 7.”

As always, thanks in advance.
Jim
3,478 reasons to hate Micro$oft and counting.

Model: Late 2007 Macbook
AppleScript: 2.3 (118)
Browser: Safari 531.9
Operating System: Mac OS X (10.6)

OK, did some more digging and experimenting but still confused.

According to the MS Word AppleScript dicionary, “list level number” (integer) is a property of the “list format” base object.

When I attempt to use this…


set list level number of list format of selection to 7

the code compiles fine, but on run I get the error “Microsoft Word got an error: Can’t set list level number of list format of selection to 7.”

If anyone has any thoughts on how to assign this value, I’m open to any suggestions at this point.

Model: Late 2007 Macbook
AppleScript: 2.3 (118)
Browser: Safari 531.9
Operating System: Mac OS X (10.6)