Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VBA project - OpenExcelFile

I would like this VBA - OpenExcelFile
to Open the Directory c:\files

where would I input a command to start open this folder ?

==============
Sub OpenExcelFile()
Dim vFile As Variant
'Showing Excel Open Dialog Form
vFile = Application.GetOpenFilename("Limit Scan File (*.xlx)," & _
"*.xlx", 1, "Select Excel File", "Open", False)
'If Cancel then exit
If TypeName(vFile) = "Boolean" Then
Exit Sub
End If
'Open selected file
Workbooks.Open vFile
End Sub
==============

Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default VBA project - OpenExcelFile

Try this:
Sub OpenExcelFile()
Dim vFile As Variant
ChDir "C:\FILES"
..
..
..
..
Micky



"It's Me Again" wrote:

I would like this VBA - OpenExcelFile
to Open the Directory c:\files

where would I input a command to start open this folder ?

==============
Sub OpenExcelFile()
Dim vFile As Variant
'Showing Excel Open Dialog Form
vFile = Application.GetOpenFilename("Limit Scan File (*.xlx)," & _
"*.xlx", 1, "Select Excel File", "Open", False)
'If Cancel then exit
If TypeName(vFile) = "Boolean" Then
Exit Sub
End If
'Open selected file
Workbooks.Open vFile
End Sub
==============

Thanks...
.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VBA project - OpenExcelFile

That worked...
Thanks for the Help...



In article ,
?B?157Xmdeb15DXnCAo157Xmden15kpINeQ15HXmdeT158=?=
<micky-a*at*tapuz.co.il wrote:
Try this:
Sub OpenExcelFile()
Dim vFile As Variant
ChDir "C:\FILES"
..
Micky


I would like this VBA - OpenExcelFile
to Open the Directory c:\files

where would I input a command to start open this folder ?

==============
Sub OpenExcelFile()
Dim vFile As Variant
'Showing Excel Open Dialog Form
vFile = Application.GetOpenFilename("Limit Scan File (*.xlx)," & _
"*.xlx", 1, "Select Excel File", "Open", False)
'If Cancel then exit
If TypeName(vFile) = "Boolean" Then
Exit Sub
End If
'Open selected file
Workbooks.Open vFile
End Sub
==============

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
Excell error "Can't find Project or Library" Project VBAProject Lost in Excel Excel Worksheet Functions 0 April 12th 07 04:42 PM
project jorge Excel Worksheet Functions 0 March 28th 07 07:28 PM
How to convert MS Project to MS Excel. I don't have MS Project. Jane Excel Discussion (Misc queries) 1 February 20th 06 10:01 PM
Need a project. bach New Users to Excel 6 August 30th 05 09:47 AM
I pay $ for this project Fred Grange Charts and Charting in Excel 0 December 28th 04 12:41 PM


All times are GMT +1. The time now is 02:28 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"