#1   Report Post  
Posted to microsoft.public.word.docmanagement
Graham F Graham F is offline
external usenet poster
 
Posts: 4
Default Counting Characters

Hello Group,

Please could you help with this problem, I need to count characters without
spaces and pass the result to Excel either via VBA or any way else that might
be possible without having to manually type the number in Excel. Thanks for
any help in advance! Best wishes Graham
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Henk57[_123_] Henk57[_123_] is offline
external usenet poster
 
Posts: 1
Default Counting Characters


The filed NUMCHARS provides as result the number of characters without
spaces. Copy this to Excel, paste as link (as unformatted text to
assume the formatting of the destination) and when the doc changes the
updated field result is automatically refected in Excel. It's a number
that you could use as input in cell formulas if that's what you need.

'Graham F[_2_ Wrote:
;2480567']Hello Group,

Please could you help with this problem, I need to count characters
without
spaces and pass the result to Excel either via VBA or any way else that
might
be possible without having to manually type the number in Excel. Thanks
for
any help in advance! Best wishes Graham





--
Henk57
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham F Graham F is offline
external usenet poster
 
Posts: 4
Default Counting Characters


Hi Henk57 Thanks for your reply, unfortunately Word is a black hole to me. I
have looked at the object model to find NUMCHARS as mentioned in your reply
and found wdFieldNumChars, which If I translate this correctly is going to
count characters in a word field. So I could assign a variable to it. How
would I get this to be present (printed) in Word to enable me to paste it to
Excel? I am sorry to bother you, but I am at the begining of my learning. Any
help would be appreciated! Thanx Graham
"Henk57" wrote:


The filed NUMCHARS provides as result the number of characters without
spaces. Copy this to Excel, paste as link (as unformatted text to
assume the formatting of the destination) and when the doc changes the
updated field result is automatically refected in Excel. It's a number
that you could use as input in cell formulas if that's what you need.

'Graham F[_2_ Wrote:
;2480567']Hello Group,

Please could you help with this problem, I need to count characters
without
spaces and pass the result to Excel either via VBA or any way else that
might
be possible without having to manually type the number in Excel. Thanks
for
any help in advance! Best wishes Graham





--
Henk57

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Counting Characters

You can insert the NUMCHARS field directly using Insert | Field | NumChars
or by pressing Ctlr+F9 and typing NUMCHARS between the braces. When you
copy/paste the field result into Excel, it will be pasted as a value, not a
field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Graham F" wrote in message
...

Hi Henk57 Thanks for your reply, unfortunately Word is a black hole to me.

I
have looked at the object model to find NUMCHARS as mentioned in your

reply
and found wdFieldNumChars, which If I translate this correctly is going

to
count characters in a word field. So I could assign a variable to it. How
would I get this to be present (printed) in Word to enable me to paste it

to
Excel? I am sorry to bother you, but I am at the begining of my learning.

Any
help would be appreciated! Thanx Graham
"Henk57" wrote:


The filed NUMCHARS provides as result the number of characters without
spaces. Copy this to Excel, paste as link (as unformatted text to
assume the formatting of the destination) and when the doc changes the
updated field result is automatically refected in Excel. It's a number
that you could use as input in cell formulas if that's what you need.

'Graham F[_2_ Wrote:
;2480567']Hello Group,

Please could you help with this problem, I need to count characters
without
spaces and pass the result to Excel either via VBA or any way else

that
might
be possible without having to manually type the number in Excel.

Thanks
for
any help in advance! Best wishes Graham





--
Henk57


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Graham F Graham F is offline
external usenet poster
 
Posts: 4
Default Counting Characters

Many thanks Suzanne, can this be made dynamic (within Word), is there a way
to update it without using the "Update field" option on the right click mouse
menu? Thanx Graham

"Suzanne S. Barnhill" wrote:

You can insert the NUMCHARS field directly using Insert | Field | NumChars
or by pressing Ctlr+F9 and typing NUMCHARS between the braces. When you
copy/paste the field result into Excel, it will be pasted as a value, not a
field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Graham F" wrote in message
...

Hi Henk57 Thanks for your reply, unfortunately Word is a black hole to me.

I
have looked at the object model to find NUMCHARS as mentioned in your

reply
and found wdFieldNumChars, which If I translate this correctly is going

to
count characters in a word field. So I could assign a variable to it. How
would I get this to be present (printed) in Word to enable me to paste it

to
Excel? I am sorry to bother you, but I am at the begining of my learning.

Any
help would be appreciated! Thanx Graham
"Henk57" wrote:


The filed NUMCHARS provides as result the number of characters without
spaces. Copy this to Excel, paste as link (as unformatted text to
assume the formatting of the destination) and when the doc changes the
updated field result is automatically refected in Excel. It's a number
that you could use as input in cell formulas if that's what you need.

'Graham F[_2_ Wrote:
;2480567']Hello Group,

Please could you help with this problem, I need to count characters
without
spaces and pass the result to Excel either via VBA or any way else

that
might
be possible without having to manually type the number in Excel.

Thanks
for
any help in advance! Best wishes Graham




--
Henk57





  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Counting Characters

Pressing F9 should update it, and it will update at print time or when you
switch to Print Preview.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Graham F" wrote in message
...
Many thanks Suzanne, can this be made dynamic (within Word), is there a

way
to update it without using the "Update field" option on the right click

mouse
menu? Thanx Graham

"Suzanne S. Barnhill" wrote:

You can insert the NUMCHARS field directly using Insert | Field |

NumChars
or by pressing Ctlr+F9 and typing NUMCHARS between the braces. When you
copy/paste the field result into Excel, it will be pasted as a value,

not a
field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"Graham F" wrote in message
...

Hi Henk57 Thanks for your reply, unfortunately Word is a black hole to

me.
I
have looked at the object model to find NUMCHARS as mentioned in your

reply
and found wdFieldNumChars, which If I translate this correctly is

going
to
count characters in a word field. So I could assign a variable to it.

How
would I get this to be present (printed) in Word to enable me to paste

it
to
Excel? I am sorry to bother you, but I am at the begining of my

learning.
Any
help would be appreciated! Thanx Graham
"Henk57" wrote:


The filed NUMCHARS provides as result the number of characters

without
spaces. Copy this to Excel, paste as link (as unformatted text to
assume the formatting of the destination) and when the doc changes

the
updated field result is automatically refected in Excel. It's a

number
that you could use as input in cell formulas if that's what you

need.

'Graham F[_2_ Wrote:
;2480567']Hello Group,

Please could you help with this problem, I need to count

characters
without
spaces and pass the result to Excel either via VBA or any way else

that
might
be possible without having to manually type the number in Excel.

Thanks
for
any help in advance! Best wishes Graham




--
Henk57




  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Graham F Graham F is offline
external usenet poster
 
Posts: 4
Default Counting Characters

Many thanx Suzanne, Problem solved!!!! Best wishes Graham

"Suzanne S. Barnhill" wrote:

Pressing F9 should update it, and it will update at print time or when you
switch to Print Preview.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Graham F" wrote in message
...
Many thanks Suzanne, can this be made dynamic (within Word), is there a

way
to update it without using the "Update field" option on the right click

mouse
menu? Thanx Graham

"Suzanne S. Barnhill" wrote:

You can insert the NUMCHARS field directly using Insert | Field |

NumChars
or by pressing Ctlr+F9 and typing NUMCHARS between the braces. When you
copy/paste the field result into Excel, it will be pasted as a value,

not a
field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"Graham F" wrote in message
...

Hi Henk57 Thanks for your reply, unfortunately Word is a black hole to

me.
I
have looked at the object model to find NUMCHARS as mentioned in your
reply
and found wdFieldNumChars, which If I translate this correctly is

going
to
count characters in a word field. So I could assign a variable to it.

How
would I get this to be present (printed) in Word to enable me to paste

it
to
Excel? I am sorry to bother you, but I am at the begining of my

learning.
Any
help would be appreciated! Thanx Graham
"Henk57" wrote:


The filed NUMCHARS provides as result the number of characters

without
spaces. Copy this to Excel, paste as link (as unformatted text to
assume the formatting of the destination) and when the doc changes

the
updated field result is automatically refected in Excel. It's a

number
that you could use as input in cell formulas if that's what you

need.

'Graham F[_2_ Wrote:
;2480567']Hello Group,

Please could you help with this problem, I need to count

characters
without
spaces and pass the result to Excel either via VBA or any way else
that
might
be possible without having to manually type the number in Excel.
Thanks
for
any help in advance! Best wishes Graham




--
Henk57





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting 1 page as 2 Robin Page Layout 2 June 12th 07 05:38 PM
word counting Nelda Microsoft Word Help 5 May 26th 06 02:57 PM
Counting Rows Nan Ros Tables 3 September 23rd 05 01:27 PM
Counting common words? slyeriiigj Microsoft Word Help 0 April 25th 05 03:48 PM
word doc keeps counting up alaninatl2002 Microsoft Word Help 2 March 16th 05 01:45 AM


All times are GMT +1. The time now is 10:40 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"