LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
BillyJ
 
Posts: n/a
Default Type mismatch mysterious error

OK, reposting since I accidentally put my name in the subject line.

I was trying to use the picture look up function associated he
http://www.mcgimpsey.com/excel/lookuppics.html

I made some slight modifications but I keep running into a problem. I get an
type mismatch error at the "Next oPic" line. After going to the debug screen
I F8 to the next line and it runs fine with no explanation. The next time I
run it, the same thing happens. Any suggestions?

With Range("E48")
For Each oPic In Me.Pictures
Test = oPic.Name
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.ShapeRange.LockAspectRatio = msoTrue
oPic.Width = 100
oPic.Left = .Left
Exit For
End If
If oPic.Name = "Picture 1" Then
oPic.Visible = True
End If
Next oPic
End With

 
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
Runtime error '1004' General ODBC error star_lucas New Users to Excel 0 August 29th 05 04:09 PM
Error Handler Not Working Bill Excel Discussion (Misc queries) 0 August 25th 05 07:13 PM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM
Findlink Error D Moniz via OfficeKB.com Links and Linking in Excel 0 January 20th 05 04:53 PM


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

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

About Us

"It's about Microsoft Excel"