Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-23-2018, 12:56 PM
slaycock slaycock is offline SENDKEYS with vbYesNoCancel and Select Case Windows 7 64bit SENDKEYS with vbYesNoCancel and Select Case Office 2016
Expert
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

Excellent

The next step is to add two frames, two text boxes and two buttons.

The frames will act as 'containers for the text boxes but more importantly allow the function of the text boxes to be displayed on the form.

Locate the Toolbox. If you can't see it on screen then

View.Toolbox

In the array of controls th\at are displayed select the frame control. This is the square box with XY at the top.

Click on the tool the move to your form. Click and drag in your form to draw the two frames. The frames should be wide enough and deep enough to get a text box inside. You can do this by dragging or by setting the Height and Width properties. Try for 34 as the height of the frame, 6 for Left and Top.

You should end up with two boxes with the XY being replaced by Frame 1 and Frame 2

Change the caption of Frame 1 to 'Number of copies to print'

Change the caption of Frame 2 to 'Start Number'

Drag the size of the form and or frames to get everything to fit.

To get things lines up you can use the various options in the Format Menu item

Now add text boxes inside the frames. The text box control is the one with ABC in it next to the big A.

Its easier now to enter the properties for top left and height as 6,6,16

You can now click inside each text box and type any default text you wish to appear. We can also set the default text programmatically during the form initialization so it not essential to add default text now.

Change the names of the text boxes

TexrBox1 to txtCopies
TextBox2 to txtStartNumber

Finally for this stage add the two buttons using the button tool. This is the box with rounded corners containing 'ab'

Place the two buttons on the same horizontal line and then change the caption for the left button to 'Cancel' and the for the Right button to 'OK' and the Names of the buttons to cmdCancel and cmdOK respectively

See how you get on with those actions
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Case and Select case brent chadwick Word VBA 34 10-18-2015 02:13 PM
Replace & case Jennifer Murphy Word 1 02-11-2013 03:26 AM
SENDKEYS with vbYesNoCancel and Select Case A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline kyjac85 Word VBA 13 09-20-2012 05:00 PM
Problem with the sendkeys in Win7 vidyapakki Excel Programming 1 05-07-2012 11:10 PM
SENDKEYS with vbYesNoCancel and Select Case From all UPPER CASE to Proper Case davers Word 1 04-30-2009 12:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft