Hello,
First, I know next to diddly squat about VBA. Next,
I'm trying to make sense w/the following code that I have. I need some help in understanding how it works and to make it handle more conditions.
To start off at the beginning:
If Active Workbook.Sheets.Count=1, I will
assume, it reads all workbooks,that have only 1 sheet and the sheet name
is irrelevant.
Next, if the code comes across a workbook w/multiple sheet(more than 1 sheet),it will only read sheets named,BILLMAT or MASTER. But, what if it comes across a single sheet workbook named "BILLMAT" or "MASTER, will
it be able to read the values under the single worksheet condition?
Next, If both BILLMAT and MASTER sheets are setup w/the same format and
indentical cell values, Can't a single argument include both sheets:
Sheets("BILLMAT","MASTER).Activate
Can this ,Find(what:="NUMBER"),be changed?: What can be sub'd in besides "NUMBER"?
What does:Resize(1, 3).Value = .FoundFiles(i) do?
What does:sf in sf.datelastmodified mean? (i'm guessing single folder?)
\
Any information to help me understand or beef up the code is appreciated.
I've also attached a BOM workbook file that, code is getting hung up on.
Fixing the code to include reading this file is a start.
Thanks,
bdb
Bookmarks