Create simple moving code that can move all my page objects up or down in once but now i want to work with a command button and a text box dont know how to linked them i checked out tutorials but cant able to understand them please help to understand them
Sub move() Dim p As Page, s As Shape, sr As ShapeRange ActiveDocument.BeginCommandGroup "undo" Dim i& For i = 1 To ActiveDocument.Pages.Count ActiveDocument.Pages(i).Shapes.All.move 0#, 0.069 Next i ActiveDocument.EndCommandGroup End Sub
See my comments in this thread about the tutorials that John so kindly provided.
Within just a few lessons, he will have you making a VBA form that has a textbox and a command button.
Sorry; wrong link. I meant to refer to my comments in this thread.
paraggoyal said:i think you are talking about John gdg lessons right ?
Yes, I'm referring to those lessons.
You don't have to go very far in those lessons before John introduces you to VBA forms, textboxes, and commandbuttons.