TextBoxes and ComboBoxes in Word

M

Mário Cordeiro

I'm doing a Questionnaire in MS Word and I'm using a lot
of Text Boxes and Combo Boxes. I'm using Windows XP and MS
Office XP.
Sometimes I close the document and when I re-open it, it
mixes all the names I give to the Combo and Text Boxes.
It's not the mixing names but the Propreties too, e.g., I
place in the document a Combo Box with the Name "City"
then I close the document and when I re-open it, the same
Combo Box is named "Street" (for instance) and has the
same Properties than a Text Box.
I heard about a XP bug, is this true?

Is there anybody that could help me please? I appreciate
that.

Thanks,
 
Z

z

A little confused by closing and opening the document.
Can you elaborate a bit more how this works? For example,

1. Macro starts and with a text box asks user for....
2. Macro then places user's input [where?]
3. Etc.
 
M

Mário Cordeiro

I'm sorry, my English is not so good, but I can send you
my file, it's better for you to Understand my dificulties.
There's some email that I can send you the file?

Thanks for your cooperation
-----Original Message-----
A little confused by closing and opening the document.
Can you elaborate a bit more how this works? For example,

1. Macro starts and with a text box asks user for....
2. Macro then places user's input [where?]
3. Etc.
-----Original Message-----

I'm doing a Questionnaire in MS Word and I'm using a lot
of Text Boxes and Combo Boxes. I'm using Windows XP and MS
Office XP.
Sometimes I close the document and when I re-open it, it
mixes all the names I give to the Combo and Text Boxes.
It's not the mixing names but the Propreties too, e.g., I
place in the document a Combo Box with the Name "City"
then I close the document and when I re-open it, the same
Combo Box is named "Street" (for instance) and has the
same Properties than a Text Box.
I heard about a XP bug, is this true?

Is there anybody that could help me please? I appreciate
that.

Thanks,



.
.
 
Z

z

I still need to know what it is that your macro is trying
to do first.
-----Original Message-----
I'm sorry, my English is not so good, but I can send you
my file, it's better for you to Understand my dificulties.
There's some email that I can send you the file?

Thanks for your cooperation
-----Original Message-----
A little confused by closing and opening the document.
Can you elaborate a bit more how this works? For example,

1. Macro starts and with a text box asks user for....
2. Macro then places user's input [where?]
3. Etc.
-----Original Message-----

I'm doing a Questionnaire in MS Word and I'm using a lot
of Text Boxes and Combo Boxes. I'm using Windows XP and MS
Office XP.
Sometimes I close the document and when I re-open it, it
mixes all the names I give to the Combo and Text Boxes.
It's not the mixing names but the Propreties too, e.g., I
place in the document a Combo Box with the Name "City"
then I close the document and when I re-open it, the same
Combo Box is named "Street" (for instance) and has the
same Properties than a Text Box.
I heard about a XP bug, is this true?

Is there anybody that could help me please? I appreciate
that.

Thanks,

Mário <


.
.
.
 
M

Mário Cordeiro

First I want to thank for your cooperation, your very kind.
My Macro is very simple, It just fill all the comboboxes
with the items i need and, save the file, close the file
and open a new one (clean one).
All the combo and text boxes are placed in a word
document, not in a form.
But I don't have any problem in my macro. The problem is
in my Word file. Let me explain you:
I have a combo called "CB_Sex". My Macro adds Items to
this combo box:

CB_Sex.AddItem ("Male")
CB_Sex.AddItem ("Female")

When I Open my Word document, it gives me a lots of errors
saying that "This object don't accept this propertie" (or
something like that). I check and I found that
the "CB_Sex" is called "TB_Name" (It's the name of one of
the Text Boxes I have). Now, this happens to almost all
text and combo boxes, word changes, by it self the names
of those objects. I have aprox. 50 boxes (Combo and Text).

Hope yopu understand me this time.

And, once again, tks
Mário <




-----Original Message-----
I still need to know what it is that your macro is trying
to do first.
-----Original Message-----
I'm sorry, my English is not so good, but I can send you
my file, it's better for you to Understand my dificulties.
There's some email that I can send you the file?

Thanks for your cooperation
-----Original Message-----
A little confused by closing and opening the document.
Can you elaborate a bit more how this works? For example,

1. Macro starts and with a text box asks user for....
2. Macro then places user's input [where?]
3. Etc.

-----Original Message-----

I'm doing a Questionnaire in MS Word and I'm using a lot
of Text Boxes and Combo Boxes. I'm using Windows XP and
MS
Office XP.
Sometimes I close the document and when I re-open it, it
mixes all the names I give to the Combo and Text Boxes.
It's not the mixing names but the Propreties too,
e.g.,
I
place in the document a Combo Box with the Name "City"
then I close the document and when I re-open it, the same
Combo Box is named "Street" (for instance) and has the
same Properties than a Text Box.
I heard about a XP bug, is this true?

Is there anybody that could help me please? I appreciate
that.

Thanks,

Mário <


.

.
.
.
 
D

Doug Robbins - Word MVP

Hi Mário,

Send me the file and I will take a look at it. I think however that for
this purpose, you could be using formfields in which case you would not need
to be adding items to comboboxes via code.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

First I want to thank for your cooperation, your very kind.
My Macro is very simple, It just fill all the comboboxes
with the items i need and, save the file, close the file
and open a new one (clean one).
All the combo and text boxes are placed in a word
document, not in a form.
But I don't have any problem in my macro. The problem is
in my Word file. Let me explain you:
I have a combo called "CB_Sex". My Macro adds Items to
this combo box:

CB_Sex.AddItem ("Male")
CB_Sex.AddItem ("Female")

When I Open my Word document, it gives me a lots of errors
saying that "This object don't accept this propertie" (or
something like that). I check and I found that
the "CB_Sex" is called "TB_Name" (It's the name of one of
the Text Boxes I have). Now, this happens to almost all
text and combo boxes, word changes, by it self the names
of those objects. I have aprox. 50 boxes (Combo and Text).

Hope yopu understand me this time.

And, once again, tks
Mário <




-----Original Message-----
I still need to know what it is that your macro is trying
to do first.
-----Original Message-----
I'm sorry, my English is not so good, but I can send you
my file, it's better for you to Understand my dificulties.
There's some email that I can send you the file?

Thanks for your cooperation
-----Original Message-----
A little confused by closing and opening the document.
Can you elaborate a bit more how this works? For example,

1. Macro starts and with a text box asks user for....
2. Macro then places user's input [where?]
3. Etc.

-----Original Message-----

I'm doing a Questionnaire in MS Word and I'm using a lot
of Text Boxes and Combo Boxes. I'm using Windows XP and
MS
Office XP.
Sometimes I close the document and when I re-open it, it
mixes all the names I give to the Combo and Text Boxes.
It's not the mixing names but the Propreties too,
e.g.,
I
place in the document a Combo Box with the Name "City"
then I close the document and when I re-open it, the same
Combo Box is named "Street" (for instance) and has the
same Properties than a Text Box.
I heard about a XP bug, is this true?

Is there anybody that could help me please? I appreciate
that.

Thanks,

Mário <


.

.
.
.
 
M

Mário Cordeiro

Hi Doug!

I sent you an email with the file. Please confirm if you
receive it.

Thank you,
Mário<

-----Original Message-----
Hi Mário,

Send me the file and I will take a look at it. I think however that for
this purpose, you could be using formfields in which case you would not need
to be adding items to comboboxes via code.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

First I want to thank for your cooperation, your very kind.
My Macro is very simple, It just fill all the comboboxes
with the items i need and, save the file, close the file
and open a new one (clean one).
All the combo and text boxes are placed in a word
document, not in a form.
But I don't have any problem in my macro. The problem is
in my Word file. Let me explain you:
I have a combo called "CB_Sex". My Macro adds Items to
this combo box:

CB_Sex.AddItem ("Male")
CB_Sex.AddItem ("Female")

When I Open my Word document, it gives me a lots of errors
saying that "This object don't accept this propertie" (or
something like that). I check and I found that
the "CB_Sex" is called "TB_Name" (It's the name of one of
the Text Boxes I have). Now, this happens to almost all
text and combo boxes, word changes, by it self the names
of those objects. I have aprox. 50 boxes (Combo and Text).

Hope yopu understand me this time.

And, once again, tks
Mário <




-----Original Message-----
I still need to know what it is that your macro is trying
to do first.
-----Original Message-----
I'm sorry, my English is not so good, but I can send you
my file, it's better for you to Understand my dificulties.
There's some email that I can send you the file?

Thanks for your cooperation
< Mário >


-----Original Message-----
A little confused by closing and opening the document.
Can you elaborate a bit more how this works? For
example,

1. Macro starts and with a text box asks user for....
2. Macro then places user's input [where?]
3. Etc.

-----Original Message-----

I'm doing a Questionnaire in MS Word and I'm using a lot
of Text Boxes and Combo Boxes. I'm using Windows XP and
MS
Office XP.
Sometimes I close the document and when I re-open it, it
mixes all the names I give to the Combo and Text Boxes.
It's not the mixing names but the Propreties too, e.g.,
I
place in the document a Combo Box with the Name "City"
then I close the document and when I re-open it, the
same
Combo Box is named "Street" (for instance) and has the
same Properties than a Text Box.
I heard about a XP bug, is this true?

Is there anybody that could help me please? I appreciate
that.

Thanks,

Mário <


.

.

.
.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top