Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Watch folder, lookup in sheet, rename - How do I approach this inVBA.



All - I working with a reporting tool that outputs excel files with
reportname as the xls file name.

Our internal system only sees file with a specific name format.

In reviewing the documentation for the reporting tool - I see that I
can call an Excel VBA module.

So I want to create a macro that:
For each file located in a folder

Look in sheet "Catalog"

If report name is in column A " example A2" then rename report to the
value in Column C "Example C2"
else iqnore.

So if reportname.xls is in sheet1-column a2 (ThisName.xls) then change
name to value in c2 (ThatName.xls)

I think I can do the renaming portion but how to I do the file lookup
within the directory?

Thanks
Steve
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
unprotect 1st sheet in every workbook in a folder and change month inS1 & year in T1 & rename all workbooks [email protected] Excel Programming 8 June 13th 08 09:54 AM
How to create a copy of a folder having five files in it, & rename Matthews Excel Worksheet Functions 1 November 7th 06 03:42 PM
rename files in a folder Varun Nair Excel Programming 7 July 18th 06 01:18 PM
rename all files in a folder DIBS Excel Programming 3 January 5th 06 06:47 AM
rename folder o files with value from inside each wbk Max Bialystock Excel Programming 2 January 2nd 04 09:24 AM


All times are GMT +1. The time now is 02:39 AM.

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"