Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
AL AL is offline
external usenet poster
 
Posts: 37
Default Excel 11.0 Object Library

I had a macro that worked great until this morning. This
morning Office 2003 (Windows 2000) was installed on my
machine. Previously I had Office 2000 (Windows 2000) with
the Excel 9.0 Object Library. No problems, life was good!

Now I get the following error: Can't exit design mode
because Control "ImgEdit1" can not be created.

Nothing has changed with the macro. The same file was
opened yesterday and today with painfully different
results. Is there something in the 11.0 library that has
changed from the 9.0 library?

Here is the code when the workbook opens:

Private Sub Workbook_Open()

Pic = "L:\North America\6699\wrappedcarnew1.tif"

Worksheets(1).ImgEdit1.Image = Pic
Worksheets(1).ImgEdit1.FitTo 0
Worksheets(1).ImgEdit1.Display
Range("L1").Select

*** Rest of code

End Sub

Any help or suggestions on how to correct or code the
macro so I don't get this error would be greatly
appreciated. Thanks for the help.....Al
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Excel 11.0 Object Library

Hi
have you checked 'Tools - References' in the VBE Editor?

--
Regards
Frank Kabel
Frankfurt, Germany

"Al" schrieb im Newsbeitrag
...
I had a macro that worked great until this morning. This
morning Office 2003 (Windows 2000) was installed on my
machine. Previously I had Office 2000 (Windows 2000) with
the Excel 9.0 Object Library. No problems, life was good!

Now I get the following error: Can't exit design mode
because Control "ImgEdit1" can not be created.

Nothing has changed with the macro. The same file was
opened yesterday and today with painfully different
results. Is there something in the 11.0 library that has
changed from the 9.0 library?

Here is the code when the workbook opens:

Private Sub Workbook_Open()

Pic = "L:\North America\6699\wrappedcarnew1.tif"

Worksheets(1).ImgEdit1.Image = Pic
Worksheets(1).ImgEdit1.FitTo 0
Worksheets(1).ImgEdit1.Display
Range("L1").Select

*** Rest of code

End Sub

Any help or suggestions on how to correct or code the
macro so I don't get this error would be greatly
appreciated. Thanks for the help.....Al


  #3   Report Post  
Posted to microsoft.public.excel.programming
AL AL is offline
external usenet poster
 
Posts: 37
Default Excel 11.0 Object Library

Yes.......all of the references are the same except that
the Object Libraries are now 11.0 instead of 9.0.


-----Original Message-----
Hi
have you checked 'Tools - References' in the VBE Editor?

--
Regards
Frank Kabel
Frankfurt, Germany

"Al" schrieb im

Newsbeitrag
...
I had a macro that worked great until this morning.

This
morning Office 2003 (Windows 2000) was installed on my
machine. Previously I had Office 2000 (Windows 2000)

with
the Excel 9.0 Object Library. No problems, life was

good!

Now I get the following error: Can't exit design mode
because Control "ImgEdit1" can not be created.

Nothing has changed with the macro. The same file was
opened yesterday and today with painfully different
results. Is there something in the 11.0 library that

has
changed from the 9.0 library?

Here is the code when the workbook opens:

Private Sub Workbook_Open()

Pic = "L:\North America\6699\wrappedcarnew1.tif"

Worksheets(1).ImgEdit1.Image = Pic
Worksheets(1).ImgEdit1.FitTo 0
Worksheets(1).ImgEdit1.Display
Range("L1").Select

*** Rest of code

End Sub

Any help or suggestions on how to correct or code the
macro so I don't get this error would be greatly
appreciated. Thanks for the help.....Al


.

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
Microsoft Word and Excel 11.0 Object Library ekreider Excel Discussion (Misc queries) 4 January 8th 08 04:01 PM
Microsoft Word Object Library in Excel Gaetan Excel Discussion (Misc queries) 4 March 14th 07 06:34 PM
Excel Object Library Reference francis cheuk Excel Programming 1 February 11th 04 06:15 PM
Problem with the Excel 10.0 Object Library MattEdwards Excel Programming 4 December 9th 03 12:37 AM
Printing through the Excel Object Library Shay Friedman Excel Programming 1 September 23rd 03 03:22 AM


All times are GMT +1. The time now is 09:19 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"