I would like to use Excel VBA to copy multiple (157) PDF's from various locations (I have all the paths) and simply save them into one location.
I'm very much a beginner with VBA and need some assistance, hopefully its quite simple.
I tried myself and got as far as using the .FollowHyperlink method although this opens the document which would not be practical for 157 documents. Any help would be much appreciated
Great to see that you're trying to learn how to code with vba.
I think it is possible in VBA.
Try and take a look at move files from one folder to another the question is about moving .xlsx files but if you change the .xlsx to .pdf it should work
from my personal experience I don't like using vba for this kind of job.
You could try other coding languages like python.
Related
I'm creating instructions for my collegues to execute data transformations form a table xls. to a file .txt. I'm not so expert... so excuse for my questions that probably are very simple.
I have a BIG problem for me. My collegues have different versions of excel and, for security and privacy boring questions, they must use the macros only in their pc... so I need to understand:
There is a way to insert absolute paths for the VBA references into the project VBA?
There is a way to verify which references are used in my project?
thanks
So I have never used Excel macros before, and am not experienced in this, but have a (very) rough idea of how things work. I have tried looking up solutions but too inexperienced to convert them to my situation.
I have to import data from many excel files into one main database, and have this going at the click of a button, as there are new files being generated daily.
I can set up the data files to have the values in a consistent format on the first sheet of the file, as a start. From there I am not sure of the coding I need to use to get the data imported to the database file and append it to the bottom of a list.
Any help would be greatly appreciated.
By "one main database" are you referring to an actual database (e.g. SQL Server) or an Excel file. If an excel file, I'd use PowerQuery for this. It's built into Excel 2016, available as a free add-in for Excel 2010/2013, and designed so that non-coders can do incredible data cleaning and prep work from a fairly easy-to-use UI built right into Excel. Plenty of tutorials on the web and youtube, as well as great books such as M is for Data Monkeys by Ken Puls.
I am new to VBA so I need your advices. I need to read data from a lot of text files into excel. Text files are like that:
What I have to do is, I need to read every files' all Feature types and parametres actual values. The format of excel should be like that:
I tried some codes by adapting to my situation but I couldn't do. Do you have an advice about how can I do that? Any advice is appreciated.
It now seems necessary to take my 50MB workbook and split it into 3 separate workbooks. Ultimately, when this program is moved to different computers, these 3 files will need to be moved together in order to function (of course). Is there a way for all of the links and conditional formatting to remain absolute? That is, all the files will be in the same folder, so a path would not be needed or wanted, just the workbook name and the sheet/cell reference.
If this is not possible or practical, am I missing something? Is there another way to do what I want to do, which is allow a very large spreadsheet to run on less powerful machines?
As long as the files are in the same relative locations, the links should update automatically. As far as I know, for the files in the same folder, it's not an issue at all. The same with going down the folder path. Problems might start when going the other way, so I'd keep them in the same folder.
Conditional formatting might be an issue though, but you could try linking just the conditions to the workbook you're trying to format.
To speed up the spreadsheet you can try manual calculations. I don't know how your spreadsheet looks like or how slow are the machines you're talking about, but that helps in most cases
P.S. Sorry for an answer when it should really be a comment, but I don't have enough reputation yet to do so
I have looked for an answer everywhere for this but couldn't find any so hopefully someone might be able to offer some assistance. I have a few thousand of excel files in a folder-subfolder structure and would like to convert them from xlsb to xls. I am currently using a vba macro to do this but it takes hours to complete the conversion. Is there any tool that can achieve this much faster? I'm not familiar with any other programming languages so please do provide as much detail as you can.
Thanks