Try this for a starter, according to your example.
Sub Belle()
Dim s1 As Worksheet, ws As Worksheet
Set s1 = Sheets("Sheet1")
Dim lr As Long
Application.ScreenUpdating = False
For Each ws In Worksheets
If ws.Name <> "Sheet1" Then
lr = s1.Range("A" &...
Try this in the ThisWorkbook event.
Private Sub Workbook_Activate()
Application.CutCopyMode = False
Application.OnKey "^c", ""
Application.CellDragAndDrop = False
End Sub
Private Sub Workbook_Deactivate()
Application.CellDragAndDrop = True
Application.OnKey "^c"
Application.CutCopyMode = False...
As far as I understand your question give this a try:
Sub CreateButton()
ActiveSheet.Range("N" & ActiveSheet.Buttons(Application.Caller).TopLeftCell.Row).Select
With Selection
.Offset(0, -3).Font.Color = RGB(0, 176, 80)
.Offset(0, -3).Font.Bold = True
.Offset(0, -3).ClearComments...
Try this
Private Sub T_40_Change()
On Error Resume Next
lijst = [Table1].value
arg = 0
For i = 1 To UBound(lijst)
If InStr(1, lijst(i, 2), T_40, vbTextCompare) > 0 Then
arg = arg + 1
End If
Next i
ReDim nwlijst(arg - 1, 40)...