fso

Getting filenames from a folder in Sharepoint with VBA

陌路散爱 提交于 2021-02-19 12:50:29
问题 I've done alot of research on this and found a number of help sites but still can't understand why this sometimes doesn't work. I'm trying to access a sharepoint site (to which there are no restrictions for me) and extract all the files in a folder within that site. Sometimes my Path works and it does it, other times it does not. I have a feeling it works if I've gone into the sharepoint site on my browser before but can't confirm that (because I just tried it again now and it doesnt work

Getting filenames from a folder in Sharepoint with VBA

泪湿孤枕 提交于 2021-02-19 12:47:24
问题 I've done alot of research on this and found a number of help sites but still can't understand why this sometimes doesn't work. I'm trying to access a sharepoint site (to which there are no restrictions for me) and extract all the files in a folder within that site. Sometimes my Path works and it does it, other times it does not. I have a feeling it works if I've gone into the sharepoint site on my browser before but can't confirm that (because I just tried it again now and it doesnt work

Failure to set FSO = CreateObject with ExceltoWord! Add-in

心已入冬 提交于 2021-01-29 05:04:34
问题 I'm using the Excel Add-in ExceltoWord to auto-populate a Word Document from an Excel worksheet. I've followed the instructions from the original developer here. I'm using the "I created generic bookmark indicators, in Word" and "I put bookmark indicators directly in cells - Left" options with "Delete the Word doc" at the end. When I save settings I get an MS Visual Basic error Run-time error '429:' ActiveX component can't create object. I've tried switching different formats of Excel sheet

How does vbscript filesystemobject encode characters?

戏子无情 提交于 2020-12-04 03:50:06
问题 I have this vbscript code: Set fs = CreateObject("Scripting.FileSystemObject") Set ts = fs.OpenTextFile("tmp.txt", 2, True) for i = 128 to 255 s = chr(i) if lenb(s) <>2 then wscript.echo i wscript.quit end if ts.write s next ts.close On my system, each integer is converted to a double byte character: there are no numbers in that range that cannot be represented by a character, and no number requires more than 2 bytes. But when I look at the file, I find only 127 bytes. This answer: https:/

Using VBScript to examine properties of files within a zip file

ぃ、小莉子 提交于 2020-01-05 09:34:29
问题 I'm trying to use VBScript to examine the contents of several hundred .zip files. Essentially what I want to do is run through each .zip and find all of the files wihtin that zip file. For each one of these files within the zip, I want to record some information about it to an Oracle database. That information being: file name and file modified date. So far, my solution has been extracting each zips folder structure to a temp folder then running through the temp folder with an fso object.

Using VBScript to examine properties of files within a zip file

淺唱寂寞╮ 提交于 2020-01-05 09:34:16
问题 I'm trying to use VBScript to examine the contents of several hundred .zip files. Essentially what I want to do is run through each .zip and find all of the files wihtin that zip file. For each one of these files within the zip, I want to record some information about it to an Oracle database. That information being: file name and file modified date. So far, my solution has been extracting each zips folder structure to a temp folder then running through the temp folder with an fso object.

Excel VBA - PDF file properties

喜夏-厌秋 提交于 2019-12-14 03:44:03
问题 first-time poster but long-time fan for finding VBA and SQL solutions on this site. I have a VBA subroutine that is designed to find all PDF files within a directory that the user designates. The program does recursions through all subfolders and generates a spreadsheet as follows: Column A: complete file path ("C:\Users\Records\NumberOne.pdf") Column B: folder path containing the file ("C:\Users\Records\") Column C: the file name itself ("NumberOne.pdf") Up to this point, the program (code

ActiveXObject FileSystemObject not releasing in Javascript

心不动则不痛 提交于 2019-12-13 08:14:46
问题 I have a Javascript function that saves JSON data locally, using an ActiveXObject in IE9. It links into FileSystemObject or FSO scripting for file access. If this Javascript function is run more than once, I get an error in IE debugger: "SCRIPT70: Permission denied" pointing to ts = savefile.OpenAsTextStream(2); Why will it run just fine the first time, but not after that? My best guess is that something's not being released properly, although I can find no information on MSDN (or here). Here