Mudraker -
Thanks for your response. The code I'm using in the case
of the individual cell copies is below. It's
very "inelegant" - I want to get the basic operation down
before I go back and clean it up.
My application calls for multiple users to fill out weekly
Time Sheets and Status Reports. This code is supposed to
copy individual pieces of information from the prior
version workbook to the next version without the user
having to manually setup up the new workbook. The macro is
run from the new workbook.
----------------------------------------------------------
Sub CopyUserInfo()
'
' CopyUserInfo Macro
' Macro recorded 1/8/2004 by PSM
'
Dim NewWkbk As String
Dim OldWkbk As String
NewWkbk = "TS_SR_v2.xls"
OldWkbk = "TS_SR_v1.1.xls"
'
Sheets("Timesheet").Select 'Initalize new wkbk to
Timesheet
'Check for old wkbk open -
'If open, then Activate
'If not, then Open
If WorkbookIsOpen(OldWkbk) _
Then Windows(OldWkbk).Activate _
Else Workbooks.Open Filename:= _
ThisWorkbook.Path & "\" & OldWkbk
Sheets("Timesheet").Select 'Initialize old wkbk to
Range("D2").Select 'Timesheet and copy name
Selection.Copy
Windows(NewWkbk).Activate
Range("D2").Select
ActiveSheet.Paste
Windows(OldWkbk).Activate 'Copy badge #
Range("D4").Select
Application.CutCopyMode = False
Selection.Copy
Windows(NewWkbk).Activate
Range("D4").Select
ActiveSheet.Paste
Windows(OldWkbk).Activate 'Copy phone #
Range("F5").Select
Application.CutCopyMode = False
Selection.Copy
Windows(NewWkbk).Activate
Range("F5").Select
ActiveSheet.Paste
Windows(OldWkbk).Activate 'Paste old TSPath into
Range("O8").Select 'new sheet, preserve
Application.CutCopyMode = False 'conditional formatting
Selection.Copy
Windows(NewWkbk).Activate
Range("O8").Select
Selection.PasteSpecial Paste:=xlPasteValues,
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(OldWkbk).Activate 'Copy hyperlinks
Range("N2:N3").Select
Application.CutCopyMode = False
Selection.Copy
Windows(NewWkbk).Activate
Range("N2:N3").Select
ActiveSheet.Paste
Windows(OldWkbk).Activate 'Copy old TS charge # info
Range("B9
24").Select
Application.CutCopyMode = False
Selection.Copy
Windows(NewWkbk).Activate
Range("B9
24").Select
ActiveSheet.Paste
Windows(OldWkbk).Activate 'Paste old AltPath from
Stat Report
Sheets("StatusReport").Select 'as new Local SRPath,
preserve
Range("J4").Select 'conditional formatting
Application.CutCopyMode = False
Selection.Copy
'****** Macro stops here*****************************
Windows(NewWkbk).Activate
Sheets("StatusReport").Select
Range("I4").Select
Selection.PasteSpecial Paste:=xlPasteValues,
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Timesheet").Select 'Finished
Range("A1").Select
MsgBox "User Data transferred - Please verify that all
entries are correct"
ActiveWindow.Close
End Sub