Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

run-time error '438'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ermeko - 28 Jan 2006 14:56 GMT
hi,
i have a commandbutton on an excel worksheet. on my operating system the
code bellow works but on another computer it prints : run-time error '438'

can you help me to solve this problem?

Sub CommandButton1_Click1()
Dim LNGCOUNT As Long
With Application.FileDialog(msoFileDialogOpen)
.AllowMultiSelect = False
.Show
ActiveSheet.Shapes.AddPicture .SelectedItems(1), True, True, 20, 25, 220, 270
End With
End Sub
Dave Peterson - 28 Jan 2006 15:00 GMT
Are you running the same version of excel?

Application.FileDialog was added in xl2002.

It looks like you could use application.getopenfilename in your code, though.

> hi,
> i have a commandbutton on an excel worksheet. on my operating system the
[quoted text clipped - 10 lines]
> End With
> End Sub

Signature

Dave Peterson

ermeko - 28 Jan 2006 15:23 GMT
Dave,
thank you very much.
i did not check version yet. but your code worked ok on my pc. and as soon
as i get that computer i will try this code on it.

thanks,
again

> Are you running the same version of excel?
>
[quoted text clipped - 16 lines]
> > End With
> > End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.