Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default upload file name

is it possible to have a upload feature in excel...like, click "browse" it
opens a list of files from a certain folder, you click open and it puts the
file name into cell A1?
i dont want to upload the file..just have the file name go into A1

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default upload file name

fileToOpen = Application _
.GetOpenFilename("Microsoft Excel Files (*.xls), *.xls")
If fileToOpen < False Then
Range("A1").Value = fileToOpenEnd If
--

HTH

RP
(remove nothere from the email address if mailing direct)


"choice" wrote in message
...
is it possible to have a upload feature in excel...like, click "browse" it
opens a list of files from a certain folder, you click open and it puts

the
file name into cell A1?
i dont want to upload the file..just have the file name go into A1

thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default upload file name

if its jpeg files i need instead would i just change it to

fileToOpen = Application _
.GetOpenFilename("JPEG Files (*.jpeg), *.jpeg")
If fileToOpen < False Then
Range("A1").Value = fileToOpenEnd If


"Bob Phillips" wrote:

fileToOpen = Application _
.GetOpenFilename("Microsoft Excel Files (*.xls), *.xls")
If fileToOpen < False Then
Range("A1").Value = fileToOpenEnd If
--

HTH

RP
(remove nothere from the email address if mailing direct)


"choice" wrote in message
...
is it possible to have a upload feature in excel...like, click "browse" it
opens a list of files from a certain folder, you click open and it puts

the
file name into cell A1?
i dont want to upload the file..just have the file name go into A1

thanks in advance




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default upload file name

Not quite, JPEg files have a jpg extension

Dim filetoopen

filetoopen = Application _
.GetOpenFilename("JPEG Files (*.jpg), *.jpg")
If filetoopen < False Then
Range("A1").Value = filetoopen
End If

--

HTH

RP
(remove nothere from the email address if mailing direct)


"choice" wrote in message
...
if its jpeg files i need instead would i just change it to

fileToOpen = Application _
.GetOpenFilename("JPEG Files (*.jpeg), *.jpeg")
If fileToOpen < False Then
Range("A1").Value = fileToOpenEnd If


"Bob Phillips" wrote:

fileToOpen = Application _
.GetOpenFilename("Microsoft Excel Files (*.xls), *.xls")
If fileToOpen < False Then
Range("A1").Value = fileToOpenEnd If
--

HTH

RP
(remove nothere from the email address if mailing direct)


"choice" wrote in message
...
is it possible to have a upload feature in excel...like, click

"browse" it
opens a list of files from a certain folder, you click open and it

puts
the
file name into cell A1?
i dont want to upload the file..just have the file name go into A1

thanks in advance






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
Upload an Excel file? Stan in South Africa Excel Discussion (Misc queries) 3 May 3rd 09 06:03 AM
CSV file upload problem Graham[_2_] Excel Discussion (Misc queries) 0 March 28th 08 01:42 PM
.csv file upload - unrecognized Kiran Setting up and Configuration of Excel 0 May 27th 05 05:30 PM
Upload file to the internet Jos Vens[_2_] Excel Programming 3 November 15th 04 10:07 PM
Upload/download a file Rich Cooper[_4_] Excel Programming 0 July 6th 04 09:42 PM


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