P
Peter
Hi,
I want to be able to run a macro (here is part of it) that copies info from one file to another. But if i change the file name (Follow_up.xls), the macro cant work. How can I run commands like this one after I have changed the file name.
Windows("Follow_up.xls").Activate
Sheets("Request for Service").Select
Range("I13:J13").Select
Selection.Copy
Windows("list.xls").Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Windows("Follow_up.xls").Activate
Application.CutCopyMode = False
Range("B2:E2").Select
Selection.Copy
Windows("list.xls").Activate
Range("B1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
I want to be able to run a macro (here is part of it) that copies info from one file to another. But if i change the file name (Follow_up.xls), the macro cant work. How can I run commands like this one after I have changed the file name.
Windows("Follow_up.xls").Activate
Sheets("Request for Service").Select
Range("I13:J13").Select
Selection.Copy
Windows("list.xls").Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Windows("Follow_up.xls").Activate
Application.CutCopyMode = False
Range("B2:E2").Select
Selection.Copy
Windows("list.xls").Activate
Range("B1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False