Handicapping With VBA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Roscoe_Word
    SBR MVP
    • 02-28-12
    • 3999

    #1
    Handicapping With VBA
    Hello Forum Crew.

    Would anyone know how to do the following?

    I need to open the 1st file in a folder. (.xlsm)

    C:\Users\glenn\desktop\Test Folder

    Then I could just do some random stuff.

    Code:
    Sheets("Test Sheet 1").Select
        Rows("1:4").Select
        Selection.Delete Shift:= xlup
        Range("A5").Select
    
        ActiveWorkbook.Close   SaveChanges: = true
    ...and then have that procedure repeat for all files in the folder. (Test Folder)

    Thanks for any possible help.
  • Roscoe_Word
    SBR MVP
    • 02-28-12
    • 3999

    #2
    Never mind, fellas. I figured it out. Thanks.
    Comment
    • oilcountry99
      SBR Wise Guy
      • 08-29-10
      • 707

      #3
      What's the solution you came up with, it may help others. Glad you figured it out
      Comment
      • mikeanite
        SBR Sharp
        • 04-13-10
        • 475

        #4
        they actually teach this in business
        Comment
        • a4u2fear
          SBR Hall of Famer
          • 01-29-10
          • 8147

          #5
          Originally posted by mikeanite
          they actually teach this in business
          really? cool. i had to learn it myself. i started many years ago teaching myself how to build a poker program to track %s. i did however have to take some college computer programming classes that i hated, but i really liked VBA
          Comment
          • Waterstpub87
            SBR MVP
            • 09-09-09
            • 4102

            #6
            Originally posted by a4u2fear
            really? cool. i had to learn it myself. i started many years ago teaching myself how to build a poker program to track %s. i did however have to take some college computer programming classes that i hated, but i really liked VBA
            I write in VBA every day at work. Fix code, write new code. In college had a few classes that use VBA. If you want a finance job, starting to become a requirement.
            Comment
            SBR Contests
            Collapse
            Top-Rated US Sportsbooks
            Collapse
            Working...