folders file listing

  1. R

    fso.GetFolder(myDir).Files.Count - 1 'Why is -1 needed sometimes, not always

    Folks: Scenario: 2 departments, 1 macro for each: Why is "-1" needed for one group of files and not the other? Because of Temporary files?: File count accurate for Department 1 reports with: fileCount = fso.GetFolder(myDir).Files.Count - 1 but for Department 2, I had to remove the -1...
  2. srizki

    Folders

    It is not really an excel question, but it is relevent. I want to create some over 200 folders name "Moveable Assets" under each of existing folders. I will have to to to each folder and create one. Is there a way to create all folders at the same time? like highlight all the folders and go to...
  3. G

    Get Files Macro Need more

    Hi i've got this Marco/Function Sub get_files() Extension = "*.CSV" Folder = "C:\Documents and Settings\User\My Documents First = True RowCount = 1 Do If First = True Then FName = Dir(Folder & "\" & Extension) First = False Else FName = Dir() End If If FName <> "" Then Range("A" & RowCount) =...

Some videos you may like

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top