Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default error with userform, "unable to create embedded object"

I have created a very simple userform. It contains only a label control.

It will not work.

When I try to execute I get the error:

Run-time error '31032':
Unable to create embedded object

The code calling the form is:

Private Sub CommandButton1_Click()
UserForm3.Show
End Sub

CommandButtun1 is on sheet 1 of my workbook.

This is my first attempt at userforms. Is there something basic that I'm
missing? I 've read books and web sites and help files and have been unable
to solve this problem
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default error with userform, "unable to create embedded object"


Hello Jeff,

2 Questions. How did you create the CommandButton and Is the Sub code
for CommandButton1 part of UserForm3 or the Worksheet?

Thanks,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=480755

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default error with userform, "unable to create embedded object"

Hi Leith,

thanks for your response!

2 Questions. How did you create the CommandButton and Is the Sub code
for CommandButton1 part of UserForm3 or the Worksheet?


The command button was created on sheet1 of my workbook using the control
toolbox toolbar.

The sub code was created by right clicking the command button (while in
design mode) in the worksheet and then clicking view code on the popup menu.
In the VB editor the sub code appears in a window that says sheet1. I
figure this means it is part of sheet1 and not part of UserForm3. I can
execute other code in the sub and it will work (such as MsgBox prompt:="test
message commandbutton1"). It only gives the error when it gets to the
UserForm3.Show statement.

Jeff
Jeff


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default error with userform, "unable to create embedded object"


posted this using the microsoft site... posting here manually to speed
up the process...


Hi Leith,

thanks for your response!

> 2 Questions. How did you create the CommandButton and Is the Sub
code
> for CommandButton1 part of UserForm3 or the Worksheet?

The command button was created on sheet1 of my workbook using the
control
toolbox toolbar.

The sub code was created by right clicking the command button (while
in
design mode) in the worksheet and then clicking view code on the popup
menu.
In the VB editor the sub code appears in a window that says sheet1. I
figure this means it is part of sheet1 and not part of UserForm3. I
can
execute other code in the sub and it will work (such as MsgBox
prompt:="test
message commandbutton1"). It only gives the error when it gets to
the
UserForm3.Show statement.

Jeff
Jeff


--
xcskier


------------------------------------------------------------------------
xcskier's Profile: http://www.excelforum.com/member.php...o&userid=28480
View this thread: http://www.excelforum.com/showthread...hreadid=480755

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default error with userform, "unable to create embedded object"


Decided to try reinstalling Office 97.

First attempt (just added stuff that was not previously installed) did
not help.

On second attempt I first removed Office 97 and then reinstalled it.

This seems to have fixed the problem.

note: On the reinstall I chose to install everything.

Perhaps some file was corrupted...


--
xcskier


------------------------------------------------------------------------
xcskier's Profile: http://www.excelforum.com/member.php...o&userid=28480
View this thread: http://www.excelforum.com/showthread...hreadid=480755

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Unable to Read File" error message in Excel - solutions? Presby Loaner Excel Discussion (Misc queries) 2 June 27th 07 05:09 PM
ERROR: "Unable to save data and formatting" Gizmo63 Excel Discussion (Misc queries) 0 April 30th 07 12:20 PM
Macro to Create New Worksheet and Reference Cell in Old Worksheet As Tab Name - "Object Required" Error [email protected] Excel Discussion (Misc queries) 4 September 25th 06 01:35 PM
"unable to paste link" Excel error message Refund Partners Excel Discussion (Misc queries) 0 June 7th 06 09:44 PM
unable to create embedded object on a userform Robert Nobles Excel Programming 0 September 9th 03 08:49 PM


All times are GMT +1. The time now is 01:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"