Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Inserting Hyperlink

I have an access 2000 database that contains CompanyID, Company Name, and URL

I have an Excel spreadsheet from another source that has CompanyID, and some
other misc info.

How can I program a macro to search the CompanyID in Access and create the
hyperlink on CompanyID in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Inserting Hyperlink

Hi Jim

where are you putting the hyperlink information - in a field in the access
table?

Cheers
JulieD

"Jim" wrote in message
...
I have an access 2000 database that contains CompanyID, Company Name, and
URL

I have an Excel spreadsheet from another source that has CompanyID, and
some
other misc info.

How can I program a macro to search the CompanyID in Access and create the
hyperlink on CompanyID in Excel?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting Hyperlink

And given where you are putting it, where does it go when clicked.

--
Regards,
Tom Ogilvy

"JulieD" wrote in message
...
Hi Jim

where are you putting the hyperlink information - in a field in the access
table?

Cheers
JulieD

"Jim" wrote in message
...
I have an access 2000 database that contains CompanyID, Company Name, and
URL

I have an Excel spreadsheet from another source that has CompanyID, and
some
other misc info.

How can I program a macro to search the CompanyID in Access and create

the
hyperlink on CompanyID in Excel?





  #4   Report Post  
Posted to microsoft.public.excel.programming
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Inserting Hyperlink

Yes, the URL is a field in Access.


  #5   Report Post  
Posted to microsoft.public.excel.programming
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Inserting Hyperlink

THe URL is a FIELD in Access. I would like it to "activate" the CompanyID in
Excel as a Hyperlink.

THanks!


  #6   Report Post  
Posted to microsoft.public.excel.programming
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Inserting Hyperlink

It is the URL of the Company. eg. http://www.microsoft.com

So in the access database we have

COMPANYID, COMPANYNAME, URL
0007, Microsoft Corp, http://www.miscrosoft.com

In Excell (which is generated from another Database we have a sheet that has
has a column of CompanyID, with several columns of misc data.
eg.
0007, June, July, etc

I would like the 0007 to continued to be the text displayed in Excel and to
be a hyperlink to the company (Using the URL stored in Access).
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Inserting Hyperlink

Hi Jim

one way to approach this would be to use range names in excel for each of
the companyIDs and then in the access field create an entry that
concatenates the file name & path with the company ID into the hyperlink
field - this will probably have to be done via code (i'm not sure how to do
this - but maybe a post in microsoft.public.access.gettingstarted will get
you the code).

- BTW this seems to work manually - but i'm guessing you don't want to do it
this way.

Cheers
JulieD



"Jim" wrote in message
...
THe URL is a FIELD in Access. I would like it to "activate" the CompanyID
in
Excel as a Hyperlink.

THanks!



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Inserting Hyperlink

You can find out how to make a URL that opens to a specific location in
Excel by opening two workbooks, then recording a macro while you Insert a
hyperlink in one of the workbooks and direct it to a specific location in
the other excel workbook. Then turn off the recorder.

You can then modify this to include a path to the file. The rest sounds
like Access programming of which I have no knowledge.

--
Regards,
Tom Ogilvy

"Jim" wrote in message
...
THe URL is a FIELD in Access. I would like it to "activate" the CompanyID

in
Excel as a Hyperlink.

THanks!



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
inserting hyperlink chuckie Excel Worksheet Functions 1 February 19th 10 08:50 PM
Inserting a Hyperlink Bookmdano Excel Discussion (Misc queries) 1 January 24th 08 03:32 PM
Hyperlink to another row broken if inserting new row between, Help KJM Excel Discussion (Misc queries) 1 September 15th 05 07:15 PM
Please help with inserting hyperlink ryssa[_12_] Excel Programming 1 July 26th 04 07:02 AM
Inserting Hyperlink from a Query Jeffrey[_4_] Excel Programming 0 July 23rd 03 05:09 PM


All times are GMT +1. The time now is 01:05 AM.

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"