View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Mike Lewis Mike Lewis is offline
external usenet poster
 
Posts: 15
Default Stopping A Macro

Is it possible to put it in the macro code somewhere?

"Per Jessen" wrote:

On 11 Jul., 03:46, Mike Lewis
wrote:
I am having a Macro "hang" or I cannot cancel when I run, it has to time
itself out. Here is the code

Dim MyPath As String, FilesInPath As String
Dim myFiles() As String
Dim SourceCcount As Long, FNum As Long
Dim mybook As Workbook, BaseWks As Worksheet
Dim sourceRange As Range, destrange As Range
Dim Cnum As Long, CalcMode As Long

MyPath = ThisWorkbook.Worksheets(1).Range("b10")

If Right(MyPath, 1) < "\" Then
MyPath = MyPath & "\"
End If


Hi

MyPath = ThisWorkbook.Worksheets(1).Range("b10") .Value

Hit CTRL + Break (usually next to "Print Screen") to stop macro

Regards,
Per