Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Changing the height and width of a control VBA

Status
Not open for further replies.

MfgEngDave

Industrial
Jul 14, 2010
13
0
0
US
Ok so heres my txt in VBA for excel:

Private Sub EModelViewControl1_OnComponentSelectionNotify(ByVal ComponentName As String, ByVal XCoordinate As Long, ByVal YCoordinate As Long)

End Sub

how do I make the height and width a certain number of cells? For example If I wanted the control to open in B7:L44 cells what would it say here?
 
Replies continue below

Recommended for you

For most things in Excel, start a macro recording, do whatever you need to do, stop recording and look at the macro generated. You can then optimize the code.
 
Thank you xwb,

cowski,
It embeds Edrawings into Excel, I use it for my setup sheets. So what I do is I have a template with this embeded and it looks to a cell to populate the file extension. So when I make an edrawing I use a naming convention to name it and I file it in a vault. Then I make the setup sheet, the setup sheet automaticly populates the edrawing. So in the future when something is changed on the edrawing( like a note is added) the setup sheet automaticlly updates without needing to sign it out and all that jazz. This also keeps everything in one window so they arnt poping back and forth between two programs to see a setup sheet and a 3d model.
 
Status
Not open for further replies.
Back
Top