vba & csv

  1. D

    VBA to copy only matching data from 2 csv workbooks into the "Master Workbook"

    I have 3 sample files and I want to open/select 2 of the files and copy only the matching data between them into a third Master csv... I have included pictures of the 3 csv files with random data & timestamps. I am new to VBA so my code prolly isn't great but... File 1. Master Workbook = the...
  2. K

    VBA to copy column/data from two .csv files to one combined file.

    Hi everyone. First time posting and I'm a novice when it comes to VBA. I have two .csv files that are exports from another program. I am trying to copy some of the data from those .csv files into one excel file so that it can be imported back into the program. The two .csv files have different...
  3. M

    Extracting & Manipulating Data from CSV

    Hey All, I am still pretty early in learning VBA and am wanting to build a reporting tool for my teams that help them to better understand their salary-to-revenue percentages. The general outline of what I am trying to build is as follows: A table is exported to CSV from Workday. A teammate...
  4. P

    VBA code to save CSV file, then after "x" seconds press start and repeat all actions every "x" minutes

    Hi, anyone can help me with a VBA code this: 1) Save CSV file in the same actual path 2) After "x" seconds press Start 3) Repeat the two actions every "x" minutes
  5. I

    VBA to merge multiple lines in a csv file

    Hi all, I have a csv file with 500 lines, each containing 3 items such as article 1, summary 1, reference 1. I am trying to merge/group the line items in batches of 15 and add the references as the end of each batch. So the structure of each new line will look something like the following...
  6. 2

    Selecting all files from folder by week number

    Hello I am trying to edit this piece of code that compiles all workbooks in a folder to only compile workbooks in a certain week, I'm stuck and am unsure how to proceed. I have looked around and seem to be unable to find someone else with this exact problem, if I could get some help or a link to...
  7. P

    Code modification to not export empty values (as zero) and empty range

    I have the below VBA that allows me to export a CSV file from a defined range. However, there are 2 issues here that I need your help to resolve: 1) When I export using this code, the exported CSV file includes empty/blank fields from the defined range. I believe the problem is that the .csv...
  8. R

    Make data input from multiple workbooks in one master workbook

    Hello, i would like to make a data input from two workbooks that is in the same path. The data input should be in the master workbook from those two files. The first sheet in the master workbook should just be empty as im going to make macro run buttons for later purpose. The data from the first...
  9. R

    Insert data from two worksheets into master workbook and match values

    Hello everyone I would love some help to develop some VBA code. But im very new to VBA. Hope someone can help me with it, and i know its a lot to implement. So its for private purpose and a "just for fun project". The project is that i want to two files in a path that i want to match with...
  10. D

    Need Help with VBA, copy paste specific columns based on headers, Headers in the source varies

    Hi, I have 0 experience in VBA but I managed to write one that allows me to do the ff: 1. Browse and select and open files 2. Delete a specific column if it exists and copy the remaining column starting Row 5 and paste the result in a specific sheet Now I need to revise it but I can't seem to...
  11. A

    Split rows EQUALLY into multiple sheets

    Hello all, Trust you're good. I got this script from Kutools that allow me to split data into sheets. For example I need to split 1 sheet of 5000 rows into 5 sheets of 1000 rows. My issue is that when splitting the sheet, it decrease the rows by 1000 only (sheet 1 5000 rows, sheet 2 4000 rows...
  12. S

    VBA code for import of multiple csv files

    Hi everyone, I've got some problems with the vba code, that I found online. I want to import multiple csv files without header into the worksheet "csv_data". The following code imports just one file, even though I select a few. Please tell me where I made a mistake. Sub CSV_Import() Dim...
  13. R

    Supporting Material for VBA EXCEL/MATERIAL DE SOPORTE PARA VBA EXCEL

    Hi i am very new in that thing of programing specially in VBA, so i want to know if you have some books or pdfs that could help me to improve my skills, if this material is in spanish it would be better because its my language. Thank you to all
  14. C

    .CSV from filtered table with VBA

    Hi All, I have a sheet that gets data via a query from the server. The aim is to filter for the info needed and having a 'Generate' button to create a separate .csv file for only the filtered data. The issues I have are the following: 1. I am new to VBA, I currently have some autofilter code...
  15. S

    range calculation in terms of distance

    guys i do need help for calculating range like no effect of terrain and anything. i need macro anything on my excel document to simultaneously calculate distance vs battery percentage .that is whenever it goes from 80% to 5% it will charge again means reset its counter and so on . my total range...
  16. E

    Exporting to CSV, messed up date format.

    Using this: Private Sub Create_CSV() Dim content As String Dim Rng As Range Set Rng = Range("A12:AS30") Dim Path As String Dim FileName1 As String Dim FileName2 As String Dim FileName3 As String Dim sWB As Workbook, _ sWS As Worksheet Dim dWB As Workbook, _ dWS As...
  17. C

    Use VBA to open file dialog and copy paste into current worksheet

    Hello all, I am attempting to write a VBA to input data into a sheet I am working on. I am trying to input data into a spreadsheet that is currently set up so I need to paste data into the range D2:D195 in the current sheet. I would like to create a button that would allow me to pick a file...
  18. B

    Moving data from Foxit PhantomPDF to an excel sheet

    Hi, Due to our present global situation, I am required to receive a document used in FoxitPhantom and move the info into excel. In order to avoid duplicate entry of information, I would like the information completed in the PDF form to copy into a specific template created in a worksheet...
  19. B

    VBA Save as dialog box opening

    Is there a way to use VBA to open the save as dialog box, set a default name from cell information, and pick the save as file type? Basically I want it to select sheet 3, Do file save as, default the name as (if I put quote marks I want the cell contents), "D3" "B3"-"C3" So it would be...
  20. M

    Activate a CSV file that is already open

    My code opens 7 new workbooks and saves them as CSV files without closing them. Later in the code I need to activate the relevant CSV file to post data into it. However, I can't seem to activate the appropraite CSV file. If the files are saved as FileFormat:= xlNormal the code runs perfectly...

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