Link to home
Start Free TrialLog in
Avatar of eyal1
eyal1

asked on

Word Basic Bullets

Hi,
I'm trying to insert bullets to a word (6) document (whitch i created with a word object )
I'm useing the next code:
<wordobject>.FormatBulletsAndNumbering Hang:=1, Tab:="0", Preset:="5"
But I allways get the next error message: "named Argument not found"

I can't use the "<wordobject>.FormatBulletDefault" because I don't want to use the default bullet icon.
What is the problem?
I'm useing VB5 with Word 6.

Thanks,
Avatar of eyal1
eyal1

ASKER

Adjusted points to 350
I don't really know much about this, but I believe the FormatBulletsAndNumbering doesn't have three parameters, if I were you I would check that.

Hope it helps.
Avatar of eyal1

ASKER

I tried to devide the 3 parameters to 3 defrent commands but I steel got the same error message.
What does each parameter mean??

I know this is not what you're trying to do, but try this example, just to see what happens

FormatBulletsAndNumbering .Hang = 1, .Preset = 3
 (it has 2 parameters)

Hope it helps

ASKER CERTIFIED SOLUTION
Avatar of planask
planask

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What do u meen by saying:
"FormatBulletsAndNumbering Remove, Hang, Preset"?

How do i set thoses parameters?

I believe what planask means is that you added a Tab parameter which doesn't fit.
The order is remove, hang, preset.
You put       hang    tab  preset.
See, maybe the order is wrong, but as plansak said, I would ommit using Tab = 0
Eyaltil,
If you tell me a bit more about the parameters you want to use I can give you a whole line of code.
In your example you are using:
Hang:=1, Tab:="0", Preset:="5"

If you try the following:
<wordobject>.FormatBulletsAndNumbering Hang:=1, Preset:=5
and make sure there are NO double quotes around 5 in Preset:=5

>>But I allways get the next error message: "named Argument not found"

I thought that was your main problem assuming you know how to set up parameters once you have created a document with a word object.
Sorry,

Is
eyal1 == eyaltil
???
That is what I assume in my previous comment.
OK,
I tried -
"pobjWord.FormatBulletsAndNumbering Remove:="0", Hand:= 1, Present:= "5" "

and I tried -
"pobjWord.FormatBulletsAndNumbering Remove:=0, Hand:= 1, Present:= 5 "

and I tried -
"pobjWord.FormatBulletsAndNumbering Remove:=0
pobjWord.FormatBulletsAndNumbering Hand:= 1
pobjWord.FormatBulletsAndNumbering Present:= 5 "

But nothing helps.
What can I do more?
I am SORRY eyaltil or eyal1. Please copy the code I've sent you into your application.

Just from curiosity. Can you spot the difference (Y/N)?
Hand:= 1, Present:= 5    -> you tried
Hang:=1, Preset:=5       -> I suggested

Take care.
Don't take the piss
and
Good Luck.

Nop,
It didn't help