根据另一个文本框的输入更改一个交互式文本框

Change one interactive textbox based on input of another

我的 powerpoint 中有一个交互式 textbox,我可以在演示模式下输入文本。我想知道如何将另一张幻灯片上另一个交互式 textbox 中的文本更改为我在原始交互式 textbox?

中输入的内容

我已经在 vba 中尝试了一些代码:

ActivePresentation.Slides(8).Shapes("TextBoxNAME2").TextFrame.TextRange.Text = "TEST" 

无济于事。有什么想法吗?

关于你的样本

ActivePresentation.Slides(8).Shapes("TextBoxNAME2").OLEFormat.Object.Text = "TEST"

或者也许是这个。 如果它是一个 ActiveX 文本框对象,您可以使用事件处理程序:

' put this in Slide's module, where You input new value at
' e.g Slide No.1 Module
Private Sub TextBox1_LostFocus()
    ' You want to update TextBox1 ona Slide 2
    Slide2.TextBox1.Text = Me.TextBox1.Text
End Sub