1

Objective: When compared, I feel the looks of outlook control is better than the ordinary. So what I want to do is use the outlook controls like buttons, textbox instead of the ordinary one (builtin controls).

Problem: When I place the control on the VBE Userform, I get the System Error H80004005 (-2147467259). Unspecified error

enter image description here

Question: Is it possible to use ms outlook controls in excel vba?

These are the highlighted controls that I would like to use.

enter image description here

10
  • Then what you want to do with outlook control. Send mail? Commented Mar 24, 2021 at 2:19
  • i like the the ui of the textbox, buttons, checkbox control and etc. so do you think sending mail is my purpose? Commented Mar 24, 2021 at 6:29
  • @SiddharthRout thank you for the question. compare the looks of outlook control is better than the ordinary. so what i want to do is use the outlook controls like buttons, textbox instead of the ordinary one(builtin controls) Commented Mar 24, 2021 at 6:47
  • 2
    Yes you will not be able to use them on VBE Userforms. No question is stupid. As per me, there are 2 types of questions (You may disagree). Good questions and Vague questions. Unfortunately, your question in the current format falls under "Vague questions" and hence I guess it is being downvoted and may get closed soon. Like I mentioned above, update your question. Explain exactly what you are trying to achieve and what problems are you currently facing (For example that error message) ;) Commented Mar 24, 2021 at 7:11
  • 2
    See I updated your question. Now tell me... Does it make more sense to readers as to what you are trying to achieve? :) Commented Mar 24, 2021 at 7:15

1 Answer 1

4

If I am not wrong, unfortunately, you cannot add these controls to a VB UserForm object in the VBE.

You can only add these controls to a form region in outlook form using the forms designer.

Having said that, you should avoid using additional controls if you are planning to distribute your workbook because the other person may not have those controls installed. For example, lot of people use MS office without having MS Outlook installed.

Sign up to request clarification or add additional context in comments.

1 Comment

noted on this. thank you once again for the help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.