?
Solved

Word Basic Bullets

Posted on 1999-11-09
12
Medium Priority
?
366 Views
Last Modified: 2011-10-03
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,
0
Comment
Question by:eyal1
  • 4
  • 3
  • 3
  • +1
12 Comments
 

Author Comment

by:eyal1
ID: 2199227
Adjusted points to 350
0
 

Expert Comment

by:pablocasta
ID: 2206104
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.
0
 

Author Comment

by:eyal1
ID: 2206118
I tried to devide the 3 parameters to 3 defrent commands but I steel got the same error message.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 

Expert Comment

by:pablocasta
ID: 2206388
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

0
 
LVL 1

Accepted Solution

by:
planask earned 700 total points
ID: 2208007
The format is as follows (at least in my books):

FormatBulletsAndNumbering Remove, Hang, Preset

I suggest the "named Argument not found" is Tab:="0"

0
 

Expert Comment

by:eyaltil
ID: 2208387
What do u meen by saying:
"FormatBulletsAndNumbering Remove, Hang, Preset"?

How do i set thoses parameters?

0
 

Expert Comment

by:pablocasta
ID: 2210810
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
0
 
LVL 1

Expert Comment

by:planask
ID: 2210965
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.
0
 
LVL 1

Expert Comment

by:planask
ID: 2210972
Sorry,

Is
eyal1 == eyaltil
???
That is what I assume in my previous comment.
0
 

Expert Comment

by:eyaltil
ID: 2211277
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?
0
 
LVL 1

Expert Comment

by:planask
ID: 2212763
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.

0
 

Expert Comment

by:eyaltil
ID: 2213070
Nop,
It didn't help
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question