Hi,
I'm sorry to repeat my question from March 2004 (thread707-811375). Nobody has answered it. I hope that new generation of skilled programmers will help me.
I was using following macro with Microsoft Word 8 on WIN 98 for a long time.
After switching to Word 2002 from XP Office collection macro stopped working.
Does someone know why?
Thank you very much
Toman
I'm sorry to repeat my question from March 2004 (thread707-811375). Nobody has answered it. I hope that new generation of skilled programmers will help me.
I was using following macro with Microsoft Word 8 on WIN 98 for a long time.
Code:
Sub MakeSum()
' mimics very useful behavior of F2 key on very old MSWord3 (for DOS)
' calculates arithmetic operations included in selection (maybe row or column selection)
' and puts the result into the clipboard
If Len(Selection.Text) > 1 Then
' MsgBox Selection.Text
result = Selection.Calculate
' MsgBox "result: " + Str(result) + " .. put into the clipboard"
StatusBar = "result: " + Str(result) + " .. put into the clipboard"
Set MyData = New DataObject
MyData.SetText result
MyData.PutInClipboard
Else
StatusBar = "Select the expression to count first !!"
End If
End Sub
After switching to Word 2002 from XP Office collection macro stopped working.
Does someone know why?
Thank you very much
Toman