LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Macro to Loop Through Hyperlinks and Print the Files

Hi I have done a search on Groups and can't find a good answer to my
query.
I have a list of hyperlinks in one workbook that contains hyperlinks
to other workbooks.
I want to loop through each of the hyperlinks, follow the hyperlink,
to open the file, then print the file and close the file, then move
onto the next hyperlink.
Can someone help me with the basis for this code?

I think the problem comes from this line of code
ActiveWorkbook.FollowHyperlink ("MyLink.xls")
From that point, I've lost control over the file so I can't do

something like
Workbook.PrintOut
Workbook.Close SaveChanges:=False
ie the code
dim wb as Workbook
set wb = ActiveWorkbook.FollowHyperlink ("MyLink.xls")
wb.PrintOut
Just doesn't work because the Follow Hyperlink can't be a type of
Workbook...

Can anyone help with this please?

 
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
How do I create hyperlinks and print those files? Ragtops3 Excel Discussion (Misc queries) 0 June 28th 07 04:36 PM
How do I create hyperlinks and print those files? Ragtops3 Excel Discussion (Misc queries) 0 June 28th 07 04:34 PM
Macro for Print Loop within Excel Browner[_4_] Excel Programming 3 May 18th 06 01:22 PM
macro to print files from a list of links jim9912 Excel Discussion (Misc queries) 7 April 25th 06 05:43 PM
Macro to Print All Files in a Folder Jim May Excel Programming 5 July 18th 04 04:09 PM


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

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"