Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2018, 07:26 AM
schor schor is offline VBA Sub-Folder Search & Copy Data Windows 8 VBA Sub-Folder Search & Copy Data Office 2016
Novice
VBA Sub-Folder Search & Copy Data
 
Join Date: Feb 2018
Posts: 1
schor is on a distinguished road
Default VBA Sub-Folder Search & Copy Data

I've been doing some research and test-coding in Excel/VBA to get the following task accomplished, however unsuccessful so far. Could anyone please point me towards the right direction how to copy cell values many hundreds of different sensors into a summary file as follows:
Measurement data located in excel-files (two files per sensor) are placed in a (sub-)folder structure as follows: ...\data\sensorSN10\finished\workbookA_SN100.xls + workbookB_SN100.xls ...\data\sensorSN11\finished\workbookA_SN101.xls + workbookB_SN101.xls
In a summary excel (...\data\summaryexcel.xls) I want the VBA script to go through the entire (sub-)folder structure of ...\data\, look if any workbook-data/file is available, copy any (non-empty) cell values C1 of workbookA_SN* to summaryexcel.xls column D1-Dxxx, as well as any (non-empty) cell values B1 of workbookB_SN* to summaryexcel.xls column E1-Exxx.
In an additional column of the summaryexel.xls (C1-Cxxx) I'd like to copy the SN's (=serial numbers) of each sensor (which is given in the filename). How could this be accomplished?


Any help greatly appreciated.
Best
George
Reply With Quote
Reply

Tags
measurement, sensor, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use CSV as search criteria for Outlook search folder lonesoac0 Outlook 0 03-07-2016 02:31 PM
Search a folder to move an email to koolman31 Outlook 0 02-11-2016 10:29 AM
VBA Word - Search Within Files Containing A String - Copy Files to New Folder jc491 Word VBA 0 01-09-2016 12:00 PM
How to constantly and automatically copy the contacts from a shared folder to my private folder? Paulo Outlook 0 08-16-2015 12:06 PM
Search Folder sent to criteria markstro Outlook 0 12-20-2011 02:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft