Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Robert Mulroney
 
Posts: n/a
Default VBA function results in fields

Is it possible to have a document field return the result of a macro
function? I'm hopeing to have a field that would call a particular function
each time it is updated and display the results. It's important that I'm able
to pass a parameter to the function. The function might look sometimg like:


public function foo(param as integer) as string

.....
'some calculations
......

foo = "my string"

end function


I'm aware that it's possible to update fields from macros but is it possible
to have a field update itself?


 
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
Repost: Record 1 contained too few data fields HJ Mailmerge 0 May 20th 05 01:27 PM
ASK and FILLIN fields in INCLUDETEXT documents do not merge correc ChrisM Mailmerge 3 April 12th 05 04:05 AM
Word Compare and Merge Document Function EricM Microsoft Word Help 2 March 28th 05 11:53 PM
Attempting to auto-update fields in a word document Sanin R Microsoft Word Help 1 January 7th 05 06:39 PM
posting data from text input fields to fields later in document BOB Microsoft Word Help 1 November 23rd 04 06:19 PM


All times are GMT +1. The time now is 11:06 AM.

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"