Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How do I print a hyperlinked document from a cell in excel

I have a list of candidates in column A and their hyperlinked resumes in
column C. When a client arrives I cause a 1 to appear in column B in each
row corresponding to the candidates that the client is schdeduled to meet .
How can I use a single command to PRINT all of the appropriate resumes for
that client (indicated by a 1 in column B)?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default How do I print a hyperlinked document from a cell in excel

try something like this:

Option Explicit

Public Sub PrintResumes()

Dim found As Range
Dim firstAddress As String
Dim wbResume As Workbook
Set found = Range("B:B").Find(1)

If Not found Is Nothing Then

firstAddress = found.Address

Do

Set wbResume = Workbooks.Open(found.Offset(0, 1).Value)

wbResume.PrintOut

wbResume.Close False

Set found = Range("B:B").FindNext(found)

Loop Until found.Address = firstAddress

End If

End Sub


methodology: search column B for cells containing 1
If a cell is found, save its address - with FIND Excel continuously loops,
so we'll save the first one & when it loops back, we'll quit the search
So if a 1 is found, open the workbook defined in the adjoining cell in C,
print it and close it without saving, then find the next cell containing a 1
after the cell we found. check that its not the first cell already, then
open.print close and find the next

HTH


"Queenshero" wrote:

I have a list of candidates in column A and their hyperlinked resumes in
column C. When a client arrives I cause a 1 to appear in column B in each
row corresponding to the candidates that the client is schdeduled to meet .
How can I use a single command to PRINT all of the appropriate resumes for
that client (indicated by a 1 in column B)?

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
Merging a hyperlinked cell with a non-hyperlinked cell? Alex Excel Discussion (Misc queries) 1 September 11th 08 03:14 PM
Auto print of a hyperlinked document Russell-stanely Excel Discussion (Misc queries) 0 July 10th 07 06:40 PM
How get hyperlinked excel cell to open in new tab? TomMeltzer Excel Discussion (Misc queries) 0 March 5th 07 04:22 AM
how do i rotate a document or print small document on envelope crystal New Users to Excel 2 March 23rd 06 03:52 PM
How do I print hyperlinked files when selected from a check box? Tracy at CNC Excel Programming 0 December 9th 04 02:13 PM


All times are GMT +1. The time now is 08:47 PM.

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"