+ Reply to Thread
Results 1 to 4 of 4

inserting hyperlinks using vba

  1. #1
    Registered User
    Join Date
    03-05-2008
    Posts
    2

    inserting hyperlinks using vba

    I have excel 2002. I inserted hyperlinks via a vba .bas file that I created using a shell script. I imported the bas file by clicking tools>> macro>> vba editor >> import. A module was created. I then clicked "run" and closed the vba editor. Everything looked ok. The links were inserted properly. But, when I click on a link it does not open follow the link. The hour-glass appears. Nothing happens (it should open a pdf file. After five or ten minutes, I try to close excel but I get this message: "Excel is waiting for another ole object to complete an OLE action." What do I need to do to automate the creation of hyperlinks / import macros? Here's a snippet of my vba code.

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 03-05-2008 at 05:26 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by brojard
    I have excel 2002. I inserted hyperlinks via a vba .bas file that I created using a shell script. I imported the bas file by clicking tools>> macro>> vba editor >> import. A module was created. I then clicked "run" and closed the vba editor. Everything looked ok. The links were inserted properly. But, when I click on a link it does not open follow the link. The hour-glass appears. Nothing happens (it should open a pdf file. After five or ten minutes, I try to close excel but I get this message: "Excel is waiting for another ole object to complete an OLE action." What do I need to do to automate the creation of hyperlinks / import macros? Here's a snippet of my vba code.

    Please Login or Register  to view this content.
    Hi

    Try changing the last bit to"

    Address:="http://www.source/0001.pdf"

    HTH

  3. #3
    Registered User
    Join Date
    03-05-2008
    Posts
    2

    Inserting hyperlinks using vba

    Quote Originally Posted by Richard Buttrey
    Hi

    Try changing the last bit to"

    Address:="http://www.source/0001.pdf"

    HTH
    Richard, I don't think this will work because I am trying to map the pdfs to a relative path. I plan to take this data and install it on my user's PCs. The user will always have a spreadsheet and a folder at the same level named "source."

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by brojard
    Richard, I don't think this will work because I am trying to map the pdfs to a relative path. I plan to take this data and install it on my user's PCs. The user will always have a spreadsheet and a folder at the same level named "source."

    Hi,

    Ah, OK. I thought you were trying to create a link to a web URL. In which case try the following instead.

    Please Login or Register  to view this content.
    HTH

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1