![]() |
|
#1
|
||||
|
||||
![]() Quote:
In any event, you can also put the shapes into a table so they're positioned as per your layout.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]() 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! |
#3
|
||||
|
||||
![]() Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
![]()
Hi,macropod:
I really appreciate your kind assistance ! I actually have read the material in the link . But I really not good at VBA,so I spent a lot of time to research the file you offered. The reason I ignored it is that "formfield" has automatic event,but " table cell ' doesn't. According to your suggestion,I should put some formfield in the table,right? My problem is that I have no ideal about which formfield I should put in. Again,I really appreciate your kind assistance ! ^^ |
![]() |
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 |