Thanks Tom,
Here is what I end up with but it does not work. What am i doing wrong.
Sub ProjectMacro()
'
' ProjectMacro Macro
' Macro recorded 8/5/2004 by Oli_Oshiz
'
'
Dim sName As String
Dim sh As Worksheet
Dim myFile As String
Set sh = ActiveSheet
myFile = Application.GetOpenFilename("Excel Files, *.xls")
vVal = Activeworkbooks.Worksheets("Sheet9").Range("B10").Value
Workbooks.Open myFile
sName = ActiveWorkbook.Name
sh.Parent.Activate
sh.Activate
Range("A2").Select
ActiveCell.FormulaR1C1 = "='[sName]sh'!R4C4"
Range("B2").Select
ActiveCell.FormulaR1C1 = "='[& sName &_]D0023'!R6C4"
Range("C2").Select
ActiveCell.FormulaR1C1 = "='[IE MMAR 6-04.xls]D0023'!R6C10"
Range("D2").Select
ActiveCell.FormulaR1C1 = "='[IE MMAR 6-04.xls]D0023'!R6C14"
Range("E2").Select
ActiveCell.FormulaR1C1 = "='[IE MMAR 6-04.xls]D0023'!R7C11"
Range("F2").Select
ActiveCell.FormulaR1C1 = "='[IE MMAR 6-04.xls]D0023'!R8C4"
Range("G2").Select
ActiveCell.FormulaR1C1 = "='[IE MMAR 6-04.xls]D0023'!R8C11"
Range("H2").Select
ActiveCell.FormulaR1C1 = "='[IE MMAR 6-04.xls]D0023'!R8C14"
Range("I2").Select
ActiveCell.FormulaR1C1 = "='[IE MMAR 6-04.xls]D0023'!R7C14"
Range("A2").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
End Sub
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!