07-05-2004, 04:13 AM
Does anyone know how to use shapes in word? like you use in normal VB? All i want to do is have a line on my form but i cant seem to so it.
07-05-2004, 04:44 AM
can't you use Words line thingy?
Somewhere at the bottom there's a bar with lines etc. You might be able to manipulate it...
EDIT: it's called drawing (tekenen in dutch, don't know the actual englisch name, when clicking on a toolbar, dropdown menu, select the menubar underneath 'Tables & Borders'
EDIT2: This is how you can select one: "ActiveDocument.Shapes("Line 2")"
07-05-2004, 05:26 AM
sorry I ment in the VB Form not in the actual word doc
07-05-2004, 02:07 PM
VBA userforms don't have shapes or lines. :(
People have come up with various workarounds, depending on their needs.
The simplest, if you just need straight lines and rectangles, is to use labels (really narrow ones for lines, etc).
The next alternative is to use pictures. You can load them at design time and make them invisible, and then copy and move them around and make them visible when needed.
The fanciest technique uses APIs. Examples here.
Here is another discussion about this issue.