![]() |
#7
|
|||
|
|||
![]() Quote:
I try your suggest. I try to use table instead of shape. But I am really not good at VBA,it still can't work. I have a Class Module (named "ClassCell") Code:
Public WithEvents objCell As Word.Application Private Sub objCell_Click() MsgBox "Hello" End Sub I have a sub in My standard Module: Code:
Global theCell() As New ClassCell Global tableNew As Table Sub toTest() Set tableNew = ThisDocument.Tables.Add(Selection.Range, 5, 4) Set theCell(1).objCell = ThisDocument.Tables(1).Cell(2, 1) End Sub I ran the sub "toTest",then some message appeared: 『 Type mismatch (Error 13) 』 Do you have any suggestion? Thank you! |
Tags |
shape |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
slknova | Word | 6 | 11-09-2021 09:02 AM |
I don't understand event handling for the DoubleClick event | Larry_1 | Excel Programming | 5 | 12-28-2017 08:23 AM |
How to change size / shape of a shape in a stencil | tomgoodell | Visio | 1 | 06-30-2016 04:40 AM |
Shape hyperlink doesn't work with protected form document | Cosmo | Word | 0 | 12-10-2012 01:42 PM |
Connect Outlook "Event" to Office Document | Yick | Office | 1 | 09-23-2011 04:57 AM |