T
Thomas
Guest
je voudrais, lors un clic sur un COMMANDBUTTON, creer des IMAGES et des TEXTBOX aux dimensions voulu.
j'arrive a faire apparaitre les IMAGES et le TEXTBOX mais pas a entrer mes dimensions...
ci-dessous mon bout de code...
Private Sub CommandButtonValider_Click()
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.InsertBreak Type:=wdPageBreak
Selection.InlineShapes.AddOLEControl ClassType:="Forms.Image.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=" "
Selection.InlineShapes.AddOLEControl ClassType:="Forms.Image.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeParagraph
Selection.TypeParagraph
Selection.InlineShapes.AddOLEControl ClassType:="Forms.Image.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeParagraph
Selection.TypeParagraph
Selection.InlineShapes.AddOLEControl ClassType:="Forms.TextBox.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeParagraph
End Sub
j'ai eu ce code en enregistrant une MACRO
Si quelqu'un connait la solution ... je suis tout ouie
j'arrive a faire apparaitre les IMAGES et le TEXTBOX mais pas a entrer mes dimensions...
ci-dessous mon bout de code...
Private Sub CommandButtonValider_Click()
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.InsertBreak Type:=wdPageBreak
Selection.InlineShapes.AddOLEControl ClassType:="Forms.Image.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=" "
Selection.InlineShapes.AddOLEControl ClassType:="Forms.Image.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeParagraph
Selection.TypeParagraph
Selection.InlineShapes.AddOLEControl ClassType:="Forms.Image.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeParagraph
Selection.TypeParagraph
Selection.InlineShapes.AddOLEControl ClassType:="Forms.TextBox.1"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeParagraph
End Sub
j'ai eu ce code en enregistrant une MACRO
Si quelqu'un connait la solution ... je suis tout ouie