Combining 2 VBA codes
Solved/Closed
SARC
Posts
29
Registration date
Saturday 7 August 2010
Status
Member
Last seen
31 August 2010
-
7 Aug 2010 à 01:01
SARC Posts 29 Registration date Saturday 7 August 2010 Status Member Last seen 31 August 2010 - 17 Aug 2010 à 22:59
SARC Posts 29 Registration date Saturday 7 August 2010 Status Member Last seen 31 August 2010 - 17 Aug 2010 à 22:59
Related:
- How to combine 2 vba code in excel
- Tentacle locker 2 - Download - Adult games
- How to open vba in excel - Guide
- Excel vba find - Guide
- My cute roommate 2 - Download - Adult games
- Lava reset code ✓ - Phones, PDA & GPS Forum
2 responses
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
7 Aug 2010 à 19:34
7 Aug 2010 à 19:34
There is lot of ambiguity on what is your intentions
This is presuming that irrespective of fact if you paste the value or not you want to hide the column
This is presuming that irrespective of fact if you paste the value or not you want to hide the column
Private Sub Worksheet_Change(ByVal Target As Range)
'Erik Van Geit
'only allow PasteValues
If Application.CutCopyMode <> False Then
With Application
.ScreenUpdating = False
.EnableEvents = False
.Undo
Target.PasteSpecial _
Paste:=xlPasteValues, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
.EnableEvents = True
.ScreenUpdating = True
End With
End If
If Range("A2") >= 1 Then Columns("A").EntireColumn.Hidden = True
End Sub
7 Aug 2010 à 21:20
7 Aug 2010 à 21:24