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: 1
Default Refere to cell representing a path to a file


I got many cells from A1 to A500... every of it containing a path to a
txt file (D:\Test\test1.txt ... and so on). Does somebody know how to
refere in my macro at these cells, so I can open the files they are
refering at ?
I want to do this in order to verify if they have a keyword inside, so
I want to open them and see if there is that word present.

Basically I thought to make a for statement which refers to A1:A500
range, and inside it to Open the files from these cells, verify if the
first word is "Complete", and if not, to copy the whole path for the
file in another Workbook or Sheet.

The problem is I don't know if it's possible, and how to write it in VB
code.
Any idea or help is high appreciated.
Thanks.


--
mariustony
------------------------------------------------------------------------
mariustony's Profile: http://www.excelforum.com/member.php...o&userid=25913
View this thread: http://www.excelforum.com/showthread...hreadid=472889

 
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 the file path in a cell netorius77 Excel Discussion (Misc queries) 5 October 22nd 09 09:00 PM
double click on cell that have link, Excel will jump to the refere RW Excel Worksheet Functions 1 June 8th 08 07:19 PM
Using UNC path instead of URL to link cell to PDF file Francisco Excel Worksheet Functions 2 May 24th 07 10:30 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
Named cells in a worksheetchange macro instead of hard cell refere Neil Goldwasser Excel Programming 1 July 29th 05 02:07 PM


All times are GMT +1. The time now is 02:03 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"