×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Changing the height and width of a control VBA

Changing the height and width of a control VBA

Changing the height and width of a control VBA

(OP)
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

RE: Changing the height and width of a control VBA

Say you wanted a width of 15 and a height of 50

CODE

    Columns("B:L").ColumnWidth = 15
    Rows("7:44").RowHeight = 50

RE: Changing the height and width of a control VBA

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.

RE: Changing the height and width of a control VBA

What is an EModelViewControl?

RE: Changing the height and width of a control VBA

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close