folderpath

  1. V

    multiple excel files into one VBA - problems whit inputbox

    Hello every body, i hope that some of you guys are able to help me out. i have to get multiple excelfile into one file, but i want to make an inputbox, so that the user are able to choose between different folders. The code looks like this so far: Sub Samling() Dim FolderPath As String Dim...
  2. B

    Output File name based on Slicer Settings

    Hi there, I'm a complete VBA novice, but have sorted out a macro that selects three different worksheets and creates a PDF of those three sheets and the Pivotcharts within them. Sub Scheme_YEAR() Dim myPath As String Dim FolderPath As String FolderPath = Application.ActiveWorkbook.Path myPath...
  3. J

    Simplify??

    I am hoping someone can help me simplify this... I have multiple tabs each I have a separate macro calling for each tab to be written to a directory in a shared network location. I feel that this could be a lot cleaner... Also I need it to not run copy the file over if J4 is blank on any of...
  4. T

    VBA Open File/Run Code/Close & Save/Open Next File

    Goodafternoon, Wehave had a lot of threads over the years for a macro that : Goes into a specific folder Opens a file in that folder Performs some code in that file Saves the file Closes the file Repeats 1-5 for each file in that folder I have trawled through this site as best I can...
  5. D

    Search string/s in folder and subfolders and put results into column

    Hi, i've been trying to create a macro that will look to all sub folders. sub folders have word documents and notepads, but i'll just be looking into notepad files. within the notepad, it will be looking for a certain word. Then if the word found in the notepad, it will populate the subfolder...
  6. S

    Data not pasting to the next open row when copying from multiple workbooks

    The following code does successfully loop through all of thesheets in the directory however it does not paste to the next open row in thedestination sheet and instead clobbers the data in the same rows Sub copydatafrommulttomaster() Dim folderpath As String, Filepath As String, filename AsString...
  7. A

    Merging worksheets into a master sheet (with formulas and formats intact)

    Hi all I'm really hoping somebody maybe able to advise as I've been racking my brains out on this. I'm working on a project where I need to merge multiple excel worksheets (to be supplied by different owners- but in a consistent format) into a single worksheet. I've made a fair amount of...
  8. kelly mort

    File path issue gets tougher

    Hello I have this issue here and I need help : Sub pdfCreate () Dim FolderPath As String FolderPath = ThisWorkbook.Path & "\PDF FILES" ChDir ThisWorkbook.Path & "\PDF FILES" Sheet10.ExportAsFixedFormat Type:=xlTypePDF, Filename:=Sheet10.Range("F4").Text, Quality:=xlQualityStandard, _...
  9. F

    Open Explorer and highlight file

    I have a large number of documents saved in a folder. In Excel, I have written the name of one of the files in the active cell, including the extension. The code below opens Windows Explorer when the macro is run. I have the following issues: (A) Ideally Windows Explorer is opened in a...
  10. M

    runtime error 1004

    Hi There, I am getting a runtime error on the following? It basically puts some data into a couple of tabs, then saves those two tabs as a pdf. Inputs new data and creates a pdf again in a loop. There are about 25 iterations of this required. But after somewhere between 5-7 I get a runtime...
  11. F

    Problem With Macro (csv file)

    Hi, below my Macro: Sub AllFiles() Dim folderPath As String Dim filename As String Dim wb As Workbook folderPath = "C:\Users\Dom\Desktop\Bob" If Right(folderPath, 1) <> "" Then folderPath = folderPath + "" filename = Dir(folderPath & "*.csv") Do While filename <> ""...
  12. A

    VBA Not Working

    My goal here is to open files in a separate folder, run the macro in each file, close and save it. The macro in that workbook updates 15 power queries. The Code Completes The Loop and opens all files, changes the value in A1 and saves them. It however is not running the macro from the other...
  13. H

    Code works just slow

    Just wondering if there might be a better way for this to be written. I copied bits of code and did a record macro and put it all together to make it work for what i want but it takes a while for it to run. Any help would be appreciated. Sub AllPlayersList() Dim folderPath As String...
  14. R

    Copy sheets from one workbook to a new workbook!!

    Hello there, I am trying to make a VBA code that copy specific sheets based on the selected cells and paste them into a new workbook. For example , if cell(2,3) = China , copy sheet 2 and sheet 3. Then create a new workbook named China that has sheet 2 and 3 in it. if Cell(2,3) = USA, copy...
  15. L

    VBA variable save file as depending on folder path of another workbook

    Hi I have a workbook template ('master workbook') where I want to create new workbook from using one of Master workbook's worksheets. i.e. right clicking the tab called 'summary'(in Master workbook)> move or copy worksheet> create new workbook: I want to save the newly created workbook in...
  16. J

    VBA - Pull Data from Multiple Closed Spreadsheets

    So I have the following code which pulls 2 cells from the same closed workbook successfully and populates them into the relevant cells in the specified workbook. How would I continue this on and obtain values from another workbook please? Public Sub...

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
Back
Top