Relative Content

Tag Archive for excelvbamacros

Importing specific photos from file folder into Excel using VBA

I am trying to import pictures into Excel using VBA. My current code allows the user to select the folder in which the pictures are located and then it imports all of the pictures from that folder into excel. I would like to keep the folder selection process the same but only import selected photos. The selected photos would be determined by the photo name in a column of my spreadsheet. Below is my existing code. Any help would be greatly appreciated. I do not want to have to insert the file path into the code. I would like the user to select the folder the files are in and have the macro search that folder for the specific file names in column A and insert the corresponding pictures into excel.

Multiple userform conundrum

I have a macro where multiple userforms open and each have their own dedicated “Done” button which unloads the respective userforms.
Now, I have a separate Save function to copy the output sheet to a new workbook and save separately.
My intention is to call this save function when the Done button of the last userform is clicked. (User can randomly choose the order of closing the open userforms.)

Excel VBA Macro Works on Mac but Not on PC

Question: I have an Excel VBA macro that works perfectly on my Mac, but when I try to run it on a PC, it doesn’t work as expected. The macro is intended to merge data from multiple Excel files into a single workbook, however, when I try run the Macro on my PC all it does is open a new file with the word “Ready” on the first cell(A1).