Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 10-18-2023, 04:57 AM
ArviLaanemets ArviLaanemets is offline The best way to avoid opened files to be activated Windows 8 The best way to avoid opened files to be activated Office 2016
Expert
The best way to avoid opened files to be activated
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Quote:
Originally Posted by AllekieF View Post
Why are you using VBA for this? This will be much, much quicker and easier with Power Query (get & transform)
The sheet in workbooks the info is read from doesn't have properly designed table (neither standard or defined one). Instead there are regions on sheet, which can be handled as different tables, but not designed as ones (some regions have data, but not headers, some have header row, but not all headers, placement of regions and the number of data rows in them can vary, there may be empty rows in regions, the number of columns and their placement in region may differ, etc. The script opens the file, analyzes it to determine, can it read wanted data from there or not (essentially by searching for certain strings in some single row, which are defined as column headers), and when it can, then reads this data. Also comments for files or data rows are created, when there was a reason the data couldn't be read, or when some info was missing.

As a result, a table with info from all ~1000 files in folder (from 1 to up over 100 rows per file) is created, plus another one where all problems with files, or with data read from them, are listed.

As you can see, no way this can be done using a query! And the structure of those files is not controlled by users of my app - they are mailed from 3rd party.

Btw. Currently I'm designing the app, so that the info will be updated only for new files or ones edited after previous run. So after inital run, next updates will be much faster.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can employer see private files opened in Office 365 thosdmg Office 0 02-27-2023 01:13 AM
The best way to avoid opened files to be activated list of Opened excel files SDondeti Word VBA 10 05-10-2018 03:52 PM
vba opened word files lock up sometimes littlepeaks Word VBA 1 01-28-2016 01:16 PM
XLM Files are not being opened in newer version of Microsoft Office 2013 KetulShah Excel 0 03-18-2014 08:23 PM
The best way to avoid opened files to be activated How to download prev. opened Gmail files. libertyfelix Outlook 1 03-25-2012 09:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:43 PM.


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