SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old June 8th, 2004, 01:01 AM
der_pumuckl der_pumuckl is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 der_pumuckl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 !!

Reply With Quote
  #2  
Old June 8th, 2004, 09:13 AM
Dylan Dylan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 12 Dylan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 0
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...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > file path


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway