![]() |
|
#1
|
|||
|
|||
|
As following, I have written a macro to automate Cross Referencing to Word Curves. When I running the macro, It encounter “Run-time error 4198,. Command failed”, Can anybody Guides me on this issue? (When I first wrote this macro, It worked for a While, But then stopped working)
Sub crosscurve() Selection.InsertCrossReference ReferenceType:="curve", ReferenceKind:= _ wdOnlyLabelAndNumber, ReferenceItem:=InputBox("what is the number of curve do you want to refer?"), InsertAsHyperlink:=True, _ IncludePosition:=False, SeparateNumbers:=False, SeparatorString:=" " End Sub Last edited by soroush.kalantari; 04-18-2022 at 04:24 AM. |
| Tags |
| cross referencing |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Can I write a macro in which I Use the Mouse?
|
Rayroshi | Word VBA | 4 | 09-06-2020 06:28 PM |
| How to write macro | yoyo4 | Excel Programming | 1 | 11-19-2017 11:43 PM |
| Macro: automate a contract? | 1questionman | Word VBA | 3 | 10-17-2017 08:29 PM |
| Macro to automate changes to slide | Mearsy | PowerPoint | 0 | 08-18-2015 03:29 AM |
Can I automate or make a macro for this?
|
mkoenig | Word VBA | 1 | 01-31-2010 02:47 AM |