find file

  1. M

    Macro Exiting External Before Finished

    Hello, I created a macro to open up a file location, move to the search box, paste text that was entered through an input box, then select the file and open it (a pdf). I am having issues where it doesn't actually enter the Windows Explorer when it opens it and ends up pasting the MO text in...
  2. P

    Macro finds biggest file in folders then attach in Outlook

    Hi All, this is my first post. I'm really stuck on this one: I want my macro to find the biggest Excel file in a specified folder and its subfolders (say Music folder), then attach it to an email. Found this beautiful code made by Mohammad Basem on this forum: it checks the folder and list...
  3. S

    Importing Data from one Workbook(shared accross a network) into a Master Stat Workbook

    Hello All. First Time here and very limited with VBA code. I am an administrator for a Police Department and I use excel spreadsheets to keep statistics of officer's daily activities. So I made up a spreadsheet called a patrol log that they each file out electronically and save to a folder on...
  4. M

    Find files in subdirectory of a subdirectory

    I used code from Microsoft Support (Method 2) to search through subdirectories and find a specific file. It works if I make the path specific enough so that my file is in the subdirectory of that path. However, I would like to generalize my search a bit more and name my path as a folder that is...
  5. S

    Search and open an EXE file

    I need to open one or other exe file if it is installed If the PC is 32 bit the file will be in C:\Programs Files\myfolder\filename.exe If the PC is 64 bit the file will be in C:\Programs Files(x86)\myfolder\filename.exe So far I have tried a combination of the following using the Shell...
  6. S

    Save .xlsm using PC name if file does not exist

    Hello All, This will be my 1st posting and I would greatly appreciate some advise on the best way to handle what I am attempting to accomplish. Basically, I would like to open an excel workbook file (.xlsm) and rename the file using the PC name ("Book1" & PC_Name). Obviously, I do not want...
  7. S

    Find File, Save As and Close

    Hi All I have a workbook with some code which searches the C: for certain files and opens them. I am then trying to save them to another directory and close them. The problem with the code below is it saves the file that is used to search for the files, not the ones I have searched for and...
  8. G

    Excel VB; find, copy, and rename file problem

    Hi, I am relatively new to Excel VB and have been stumped. I need help writing code that finds a file of any type e.g. (xls, xlsx, doc, docx, ppt, txt) copies and renames it with the appropriate extension to another specified folder. In addition, the user will not be allowed to find the file to...

Watch MrExcel Video

This Week's Hot Topics

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top