Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Generating a Hyperlink Macro

Dear all,

I have a spreadsheet with the following data:

Column A B C D
E:\HALCONtemp\ASP12.2\ -13438 -50576 8030
E:\HALCONtemp\ASP12.2\ -13445 -48132 8940
E:\HALCONtemp\ASP12.2\ -13451 -51858 7830
....

I am a somewhat newbie and am trying to generate a macro that will
enable me to hyperlink each Row in Column A and open the associated file.

So, in the example above, the folder 'E:\HALCONtemp\ASP12.2\' has the
file '-13438_-50576_8030.tif' that I would like to open (as a preview).

So, to generalise, Column A has the folder 'An' and I would like to open
the file 'Bn'_'Cn'_'Dn'.tif associated with it.

Hopefully that makes some sense. Any help would be greatly appreciated.

Andy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Generating a Hyperlink Macro

You don't need a macro.

in E1 put in the formula

=Hyperlink(A1&b1&"_"&C1&"_"&d1&".tif",B1&"_"&C1&"_ "&D1)

then drag fill down the column.

Adjust the concatentation to faithfully reproduce the full path of the file
(if my sample doesn't already) and alter the second argument to dipslay what
you want.

See Excel help on the Hyperlink worksheet function for details.

Regards,
Tom Oglivy

"Andy Weller" wrote in message
...
Dear all,

I have a spreadsheet with the following data:

Column A B C D
E:\HALCONtemp\ASP12.2\ -13438 -50576 8030
E:\HALCONtemp\ASP12.2\ -13445 -48132 8940
E:\HALCONtemp\ASP12.2\ -13451 -51858 7830
...

I am a somewhat newbie and am trying to generate a macro that will
enable me to hyperlink each Row in Column A and open the associated file.

So, in the example above, the folder 'E:\HALCONtemp\ASP12.2\' has the
file '-13438_-50576_8030.tif' that I would like to open (as a preview).

So, to generalise, Column A has the folder 'An' and I would like to open
the file 'Bn'_'Cn'_'Dn'.tif associated with it.

Hopefully that makes some sense. Any help would be greatly appreciated.

Andy



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
Hyperlink to a Macro pokdbz Excel Discussion (Misc queries) 4 October 4th 07 08:18 PM
Hyperlink Macro Diane Excel Discussion (Misc queries) 0 September 25th 06 04:51 PM
embedding a macro when generating a CSV file Fred Charts and Charting in Excel 1 February 16th 06 12:16 AM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM
Security - Protecting Macro while generating workbook thru VB 6.0 K.S.Srinivasan Excel Programming 0 January 31st 04 06:36 AM


All times are GMT +1. The time now is 09:45 AM.

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"