Results 1 to 5 of 5

open and print file .pdf

Threaded View

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    open and print file .pdf

    Hi

    I am new to excel and I am trying to create a macro that will open a hyperlink to a pdf file and print it. The hyperlink is manually added by the user to column D

    I have the below that opens the files in column d but I can not get it to print. Any advice will be much appreciated

    Sub HyperOpen()
    Dim cell As Range
    Dim r As Integer 'Last used row in column D
    On Error Resume Next
    'Last used row in column D
    r = Range("D65536").End(xlUp).Row
    
    For Each cell In Range("D2:D5000" & r) 'Range containing hyperlinks
    cell.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=False
    Next cell
    End Sub
    Sub Hyper()
    Last edited by vlady; 11-25-2012 at 08:37 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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