اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر

وعليكم السلام أخي عبد القدوس 🙂 

وجدت لك هذا الكود .. ولم أجربه .. لعله يفيدك :

 

'*****************************************************
'****************SELECTING A FILE LOCATION****************
'*****************************************************

'ATTENTION: YOU MUST go to Tools->References and select 'Microsoft Office X.X object Library' for
'the FileDialog function to work properly

Dim retFile As String, dlg As Variant, s As String

Set dlg = Application.FileDialog(msoFileDialogFilePicker)
With dlg
    'This is the title of the browser window you will use to select the file path.
    .Title = "Select a Latitude Longitude Snapshot File"
    .AllowMultiSelect = False
    ' Name and select the file type. *.* will show all file types
    .Filters.Add "Snapshot files", "*.html"
    ' The initial file name can be anything you choose, the example below will start you at the root of your "C" drive
    '    .InitialFileName = "c:\"

If .Show = -1 Then s = .SelectedItems(1)
End With

If s <> "" Then
'*** retFile stores the full path to the selected file ***
retFile = s
End If


'*** Linking the Acess DB to the HTML datasheet ***
'*** Once the link is complete, it will display in access as a table. Following we declare a tab name. ***
Dim tabName As String
tabName = "LatLon"
DoCmd.TransferText acLinkHTML, , tabName, retFile, -1

:: المصدر ::

  • Like 1

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

سجل دخولك الان
  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information