Results 1 to 5 of 5

Pause macro whilst selecting the file i want to copy from

Threaded View

stevekirk Pause macro whilst selecting... 10-03-2012, 04:41 AM
Bishonen Re: Pause macro whilst... 10-03-2012, 04:44 AM
stevekirk Re: Pause macro whilst... 10-03-2012, 05:03 AM
Bishonen Re: Pause macro whilst... 10-03-2012, 05:43 AM
stevekirk Re: Pause macro whilst... 10-03-2012, 09:07 PM
  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    Pause macro whilst selecting the file i want to copy from

    hi,

    i will have many workbooks with data in it in a folder called "accuscan temp" that i will want to copy to another workbook, then do other things with the data copied.

    the file path i have is

     ChDir "C:\Users\steve.kirk\Documents\accusacn temp\results"
        Workbooks.Open Filename:= _
            "C:\Users\steve.kirk\Documents\accusacn temp\?????????
    
    
    Cells.Select
        Selection.Copy
        Windows("results table.xls").Activate
        Sheets("Sheet1").Select
        Cells.Select
        ActiveSheet.Paste
        Range("A6").Select
        Application.CutCopyMode = False
        ActiveWorkbook.Save
        Sheets("Sheet2").Select
        Windows("sheet1.csv").Activate
        Range("P11").Select
        ActiveWindow.Close
    is it possible to pause the macro until i click on the file i want before it resumes with the macro

    then name the file that i have copied the data to the same name as the data come from


    thanks

    steve
    Last edited by stevekirk; 10-05-2012 at 06:05 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1