rjplante
Well-known Member
- Joined
- Oct 31, 2008
- Messages
- 574
- Office Version
- 365
- Platform
- Windows
I wish I could figure these out on my own, but I too much a novice for that to happen. Using the code below I get the following error:
------------
Run-time error '1004':
That command cannot be used on multiple selections.
------------
This fails and then highlights the line in red.
What is wrong with the code this time?
Thanks,
Robert
------------
Run-time error '1004':
That command cannot be used on multiple selections.
------------
This fails and then highlights the line in red.
What is wrong with the code this time?
Thanks,
Robert
Rich (BB code):
Sub MSTS_T24_Update()
Application.ScreenUpdating = False
File1 = ActiveWorkbook.Name
ChDir "\\Ferrari\common\Product QC\BioPrep QC\PrepaCyte-CB\PrepaCyte-CB QC\510k Lot Testing\PCB QC Trendline Data"
Workbooks.Open Filename:= _
"\\Ferrari\common\Product QC\BioPrep QC\PrepaCyte-CB\PrepaCyte-CB QC\510k Lot Testing\PCB QC Trendline Data\Master Stability Tracking Sheet.xlsm"
Range("Z1").ClearContents
Workbooks(File1).Activate
Sheets("QC5003.8 PCB Stab Rec - Storage").Visible = True
Sheets("QC5003.8 PCB Stab Rec - Storage").Range("BE5").Copy
Application.ScreenUpdating = True
Workbooks("Master Stability Tracking Sheet.xlsm").Activate
Application.ScreenUpdating = False
Sheets("Stability").Range("Z1").PasteSpecial Paste:=xlPasteValues
'Loop to find row
Range("A3").Select
Do
If ActiveCell.Value <> Range("Z1").Value Then
Selection.Offset(1, 0).Select
End If
Loop Until ActiveCell.Value = Range("Z1").Value
ActiveCell.Offset(0, 15).Select
ActiveCell.Value = Date
ActiveWorkbook.Save
ActiveWorkbook.Close
Workbooks(File1).Activate
Sheets("QC5003.8 PCB Stab Rec - Storage").Range("BF16").Value = Date
Application.ScreenUpdating = True
Call Intro_page
End Sub