VinceF
Board Regular
- Joined
- Sep 22, 2007
- Messages
- 189
- Office Version
- 2016
- Platform
- Windows
Greetings,
Hopefully this is an easy one for the experts.
If on sheet "MAIN" in cell C3 the selection from a DDL = SKINS I'd like the code for the VinE Cup to do nothing.
or
If on the MAIN sheet cell C3 = QUOTA & SKINS or QUOTA the code would be executed.
Whichever is easiest as either way should work.
Thanks for your assistance,
VinceF
Win10
Excel 2016
Sub COPY_AND_PASTE()
Dim n As Long
Application.ScreenUpdating = False
n = Sheets("MAIN").Range("AA3").Value
With Sheets("WIN").Cells(2, 4 + n).Resize(143)
.Copy
.PasteSpecial xlPasteValues
Application.CutCopyMode = False
Sheets("WIN").Select
Range("C5").Select
Sheets("MAIN").Select
Dim myCell As Range
Application.ScreenUpdating = False
For Each myCell In Sheets("SCORING HISTORY").Range("F5:AS141").SpecialCells(xlCellTypeFormulas, 1)
myCell.Copy
myCell.PasteSpecial xlValues
Next
With Application
.CutCopyMode = False
.ScreenUpdating = True
For Each myCell In Sheets("VinE CUP").Range("F8:AS144").SpecialCells(xlCellTypeFormulas, 1)
myCell.Copy
myCell.PasteSpecial xlValues
Next
With Application
.CutCopyMode = False
.ScreenUpdating = True
End With
Sheets("MAIN").Select
End With
End With
End Sub
Hopefully this is an easy one for the experts.
If on sheet "MAIN" in cell C3 the selection from a DDL = SKINS I'd like the code for the VinE Cup to do nothing.
or
If on the MAIN sheet cell C3 = QUOTA & SKINS or QUOTA the code would be executed.
Whichever is easiest as either way should work.
Thanks for your assistance,
VinceF
Win10
Excel 2016
Sub COPY_AND_PASTE()
Dim n As Long
Application.ScreenUpdating = False
n = Sheets("MAIN").Range("AA3").Value
With Sheets("WIN").Cells(2, 4 + n).Resize(143)
.Copy
.PasteSpecial xlPasteValues
Application.CutCopyMode = False
Sheets("WIN").Select
Range("C5").Select
Sheets("MAIN").Select
Dim myCell As Range
Application.ScreenUpdating = False
For Each myCell In Sheets("SCORING HISTORY").Range("F5:AS141").SpecialCells(xlCellTypeFormulas, 1)
myCell.Copy
myCell.PasteSpecial xlValues
Next
With Application
.CutCopyMode = False
.ScreenUpdating = True
For Each myCell In Sheets("VinE CUP").Range("F8:AS144").SpecialCells(xlCellTypeFormulas, 1)
myCell.Copy
myCell.PasteSpecial xlValues
Next
With Application
.CutCopyMode = False
.ScreenUpdating = True
End With
Sheets("MAIN").Select
End With
End With
End Sub