|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
file path
Hello ,
I have a problem: In Excell i have a a userform and some buttons. When i click one of these buttons i want that the macro opens a file. Workbooks.Open FileName:= _ "c:\data\excel_data\S-serie\S456-00b.xls" But what i want is someting like this : Workbooks.Open Filename:=_ "\S-serie\S456-00b.xls" So i can copy the file's to a server with another pathname ! Tnx ! A newbie !! |
|
#2
|
|||
|
|||
|
You can get the current path from the workbook object...
Dim sPath As String sPath = ActiveWorkbook.Path Workbooks.Open Filename:=(sPath & "\S-serie\S456-00b.xls") Hope that helps... |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > file path |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|