Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Zak Zak is offline
external usenet poster
 
Posts: 144
Default Uploading files:Not sure if this is an easy or hard one

Hi

I am creating a form in excel, and one of the prompts on the form is to
browse and upload a file (like any other upload file function where you can
just browse and upload). What i would like to do is to be able to just click
on the 'browse' button and select the file, then for the file path to be
copied into excel as just a hyperlink (so that when you click on that
hyperlink, it will open up the file).

I don't know if this is at all feasable or not...can anyone help/advise me?

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Uploading files:Not sure if this is an easy or hard one

I can't help you with the browse and select bit, but thought I would point
out that uploading is when you send data to another system and downloading is
when you receive data from another system. I could be wrong but I think you
want to download. You need to be a little more specific about what type of
file liike text or data or chart and where it comes from, like webpage,
access, DB4, other Excel, etc.


"zak" wrote:

Hi

I am creating a form in excel, and one of the prompts on the form is to
browse and upload a file (like any other upload file function where you can
just browse and upload). What i would like to do is to be able to just click
on the 'browse' button and select the file, then for the file path to be
copied into excel as just a hyperlink (so that when you click on that
hyperlink, it will open up the file).

I don't know if this is at all feasable or not...can anyone help/advise me?

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
Zak Zak is offline
external usenet poster
 
Posts: 144
Default Uploading files:Not sure if this is an easy or hard one

Hi

Thanks for pointing this out. Having thought about it some more.
Basically, I create a list of actions on an Excel spreadsheet. Then I save
this on a network drive and give it a file name, Upgrade.xls.

Then in a totally different workbook, I have created a simple appointment
system. A form on this appointment system will want the hyperlink for the
file name to be added to Sheet 1, from cell reference H5 onwards, so that
when clicking the hyperlink, the Upgrade.xls document will open up.

Am I making sense? If so, please can you help me in any way.

Thank you very much


"JLGWhiz" wrote:

I can't help you with the browse and select bit, but thought I would point
out that uploading is when you send data to another system and downloading is
when you receive data from another system. I could be wrong but I think you
want to download. You need to be a little more specific about what type of
file liike text or data or chart and where it comes from, like webpage,
access, DB4, other Excel, etc.


"zak" wrote:

Hi

I am creating a form in excel, and one of the prompts on the form is to
browse and upload a file (like any other upload file function where you can
just browse and upload). What i would like to do is to be able to just click
on the 'browse' button and select the file, then for the file path to be
copied into excel as just a hyperlink (so that when you click on that
hyperlink, it will open up the file).

I don't know if this is at all feasable or not...can anyone help/advise me?

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Uploading files:Not sure if this is an easy or hard one

I think you could probably use the Worksheet_SelectionChange event to do what
you want withoout the hyperlink. Basically, if the user selects an option in
column H it would open the workbook on the network drive. Sample code below.

Private Sub Worksheet_SelectionChange(ByVal Taget As Range)
Set netWkb = 'network path and filename
Set srcRng = Range("H5:H" & Cells(Rows.Count, 8). _
End(xlUp).Row)
If Not Intersect(Target, srcRng) Is Nothing Then
Workbooks(netWkb).Open
End If
End Sub

"zak" wrote:

Hi

Thanks for pointing this out. Having thought about it some more.
Basically, I create a list of actions on an Excel spreadsheet. Then I save
this on a network drive and give it a file name, Upgrade.xls.

Then in a totally different workbook, I have created a simple appointment
system. A form on this appointment system will want the hyperlink for the
file name to be added to Sheet 1, from cell reference H5 onwards, so that
when clicking the hyperlink, the Upgrade.xls document will open up.

Am I making sense? If so, please can you help me in any way.

Thank you very much


"JLGWhiz" wrote:

I can't help you with the browse and select bit, but thought I would point
out that uploading is when you send data to another system and downloading is
when you receive data from another system. I could be wrong but I think you
want to download. You need to be a little more specific about what type of
file liike text or data or chart and where it comes from, like webpage,
access, DB4, other Excel, etc.


"zak" wrote:

Hi

I am creating a form in excel, and one of the prompts on the form is to
browse and upload a file (like any other upload file function where you can
just browse and upload). What i would like to do is to be able to just click
on the 'browse' button and select the file, then for the file path to be
copied into excel as just a hyperlink (so that when you click on that
hyperlink, it will open up the file).

I don't know if this is at all feasable or not...can anyone help/advise me?

Thank you

  #5   Report Post  
Posted to microsoft.public.excel.programming
Zak Zak is offline
external usenet poster
 
Posts: 144
Default Uploading files:Not sure if this is an easy or hard one

Hi

Thanks for your response. I have tried to use the code, but the following
line turns red upon saving:

-- Set netWkb = 'network path and filename?

Also, I am not sure what you mean by "when the user selects an option in
column H" because this is where i'd like the hyperlink for the file to go. I
think I am getting confused, but please let me know how to fix the above
line, and maybe it will make sense to me once I see it working.

Thanks Again!

"JLGWhiz" wrote:

I think you could probably use the Worksheet_SelectionChange event to do what
you want withoout the hyperlink. Basically, if the user selects an option in
column H it would open the workbook on the network drive. Sample code below.

Private Sub Worksheet_SelectionChange(ByVal Taget As Range)
Set netWkb = 'network path and filename
Set srcRng = Range("H5:H" & Cells(Rows.Count, 8). _
End(xlUp).Row)
If Not Intersect(Target, srcRng) Is Nothing Then
Workbooks(netWkb).Open
End If
End Sub

"zak" wrote:

Hi

Thanks for pointing this out. Having thought about it some more.
Basically, I create a list of actions on an Excel spreadsheet. Then I save
this on a network drive and give it a file name, Upgrade.xls.

Then in a totally different workbook, I have created a simple appointment
system. A form on this appointment system will want the hyperlink for the
file name to be added to Sheet 1, from cell reference H5 onwards, so that
when clicking the hyperlink, the Upgrade.xls document will open up.

Am I making sense? If so, please can you help me in any way.

Thank you very much


"JLGWhiz" wrote:

I can't help you with the browse and select bit, but thought I would point
out that uploading is when you send data to another system and downloading is
when you receive data from another system. I could be wrong but I think you
want to download. You need to be a little more specific about what type of
file liike text or data or chart and where it comes from, like webpage,
access, DB4, other Excel, etc.


"zak" wrote:

Hi

I am creating a form in excel, and one of the prompts on the form is to
browse and upload a file (like any other upload file function where you can
just browse and upload). What i would like to do is to be able to just click
on the 'browse' button and select the file, then for the file path to be
copied into excel as just a hyperlink (so that when you click on that
hyperlink, it will open up the file).

I don't know if this is at all feasable or not...can anyone help/advise me?

Thank you



  #6   Report Post  
Posted to microsoft.public.excel.programming
Zak Zak is offline
external usenet poster
 
Posts: 144
Default Uploading files:Not sure if this is an easy or hard one

Hi

I have sent a mail in response to your code, but you may not have seen it.
There is an error in the code, the first line turns red when the code is run
and cant get it to go away.

This is the line that turns red:

Set netWkb = 'network path and filename

Please let me know if you know what is wrong with the code.

Thanks


"JLGWhiz" wrote:

I think you could probably use the Worksheet_SelectionChange event to do what
you want withoout the hyperlink. Basically, if the user selects an option in
column H it would open the workbook on the network drive. Sample code below.

Private Sub Worksheet_SelectionChange(ByVal Taget As Range)
Set netWkb = 'network path and filename
Set srcRng = Range("H5:H" & Cells(Rows.Count, 8). _
End(xlUp).Row)
If Not Intersect(Target, srcRng) Is Nothing Then
Workbooks(netWkb).Open
End If
End Sub

"zak" wrote:

Hi

Thanks for pointing this out. Having thought about it some more.
Basically, I create a list of actions on an Excel spreadsheet. Then I save
this on a network drive and give it a file name, Upgrade.xls.

Then in a totally different workbook, I have created a simple appointment
system. A form on this appointment system will want the hyperlink for the
file name to be added to Sheet 1, from cell reference H5 onwards, so that
when clicking the hyperlink, the Upgrade.xls document will open up.

Am I making sense? If so, please can you help me in any way.

Thank you very much


"JLGWhiz" wrote:

I can't help you with the browse and select bit, but thought I would point
out that uploading is when you send data to another system and downloading is
when you receive data from another system. I could be wrong but I think you
want to download. You need to be a little more specific about what type of
file liike text or data or chart and where it comes from, like webpage,
access, DB4, other Excel, etc.


"zak" wrote:

Hi

I am creating a form in excel, and one of the prompts on the form is to
browse and upload a file (like any other upload file function where you can
just browse and upload). What i would like to do is to be able to just click
on the 'browse' button and select the file, then for the file path to be
copied into excel as just a hyperlink (so that when you click on that
hyperlink, it will open up the file).

I don't know if this is at all feasable or not...can anyone help/advise me?

Thank you

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
Combining Spreadsheets easy or hard AndyN Excel Discussion (Misc queries) 1 January 7th 10 04:26 PM
Uploading excel files: Useful and Cool Albert Excel Discussion (Misc queries) 1 September 14th 06 05:19 PM
Easy question for you, but hard for me. AnimatorElf Excel Worksheet Functions 3 March 29th 06 08:09 PM
How to save excel Files for uploading in Deltek? VirginiaBiz Excel Discussion (Misc queries) 1 November 3rd 05 09:16 PM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"