Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default getopenfilename in access

Hello,

I have a problem with access. I have used a subroutine from excel tha
uses the getopenfilename control. In acces it won't work. Does anybod
have a solution.

Regards,
Nie

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default getopenfilename in access

to a form, add a Common Dialog Control. Then add a
button. Use the click event on the button to show the
controls "Open" method or "SaveAs" method ...

Private Sub Command0_Click()
Dim fn As String
On Error GoTo trap
With CommonDialog1
.CancelError = True
.ShowOpen
fn = ""
fn = .FileName

End With
Exit Sub

trap:
' cancel clicked

End Sub



Patrick Molloy
Microsoft Excel MVP



-----Original Message-----
Hello,

I have a problem with access. I have used a subroutine

from excel that
uses the getopenfilename control. In acces it won't

work. Does anybody
have a solution.

Regards,
Niek


---
Message posted from http://www.ExcelForum.com/

.

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
getopenfilename inquirer Excel Programming 1 December 3rd 03 11:37 AM
GetOpenFilename Hasan Cansü Excel Programming 0 September 24th 03 01:32 PM
Application.GetOpenFileName ptrowe Excel Programming 2 September 11th 03 12:54 PM
Using GetOpenFilename Robin Seaby Excel Programming 2 August 6th 03 04:50 PM
GetOpenFilename Daniel[_4_] Excel Programming 3 July 27th 03 11:00 AM


All times are GMT +1. The time now is 09:04 PM.

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"