-
I do it all the time with access & excel...
but in word...
My collegue told me he tried many times (he is better than me) and could never do it!!
At least I'd like to know if somebody did it????
I've got document1 (default) open;
VB editor open
I pasted my VB function :
myfunction(yourstring) as String ...
I've got a table 2 cols X 3 rows
a1 b1
a2 b2
a3 b3
how can i make b1 to be myfunction(a1)
b2 to be myfunction(a1)
etc...
thank you for any help
-
Well, if I'm reading this correctly, it would be.
Code:
Documents(1).Tables(1).Cell(1, 2).Range = myfunction(Documents(1).Tables(1).Cell(1,1).Range)
Documents(1).Tables(1).Cell(2, 2).Range = myfunction(Documents(1).Tables(1).Cell(1,1).Range)
Hope this helps.