This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Rename() | |
'Dim olTask As Outlook.TaskItem | |
'Using object so all items can be processed | |
Dim olitem As Object | |
Dim olExp As Outlook.Explorer | |
Dim fldCurrent As Outlook.MAPIFolder | |
Dim olApp As Outlook.Application | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Merge_Down() | |
Dim ws As Worksheet | |
ActiveSheet.UsedRange.Offset(0).Clear | |
For Each ws In ActiveWorkbook.Worksheets | |
If ws.Name <> ActiveSheet.Name Then | |
ws.UsedRange.Copy | |
Range("A65536").End(xlUp).Offset(1, 0).Select | |
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ | |
False, Transpose:=False | |
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Merge_Across() | |
Dim sh As Worksheet | |
Dim DestSh As Worksheet | |
Dim Last As Long | |
Dim CopyRng As Range | |
With Application | |
.ScreenUpdating = False | |
.EnableEvents = False | |
End With |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function LastRow(sh As Worksheet) | |
On Error Resume Next | |
LastRow = sh.Cells.Find(What:="*", _ | |
After:=sh.Range("A1"), _ | |
Lookat:=xlPart, _ | |
LookIn:=xlFormulas, _ | |
SearchOrder:=xlByRows, _ | |
SearchDirection:=xlPrevious, _ | |
MatchCase:=False).Row | |
On Error GoTo 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Fill in the range that you want to copy | |
'Set CopyRng = sh.Range("A1:G1") | |
Sub CopyRangeFromMultiWorksheets() | |
Dim sh As Worksheet | |
Dim DestSh As Worksheet | |
Dim Last As Long | |
Dim CopyRng As Range | |
With Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function GetLastRow(ByVal rngToCheck As Range) As Long | |
Dim rngLast As Range | |
Set rngLast = rngToCheck.Find(what:="*", searchorder:=xlByRows, searchdirection:=xlPrevious) | |
If rngLast Is Nothing Then | |
GetLastRow = rngToCheck.Row | |
Else | |
GetLastRow = rngLast.Row |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DoCmd.SetWarnings (False) | |
DoCmd.SetWarnings (True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function XDocument::OnSwitchView(eventObj) | |
{ | |
XDocument.View.Window.Caption = "Name of Form"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub DeleteRows() | |
Dim x As Long | |
With Sheets(1) | |
For x = .UsedRange.Rows.Count To 2 Step -1 | |
If .Cells(x, 1) < 0.2 And .Cells(x, 2) > 0.3 And .Cells(x, 3) > 10 Then | |
.Rows(x).Delete | |
End If | |
Next | |
End With | |
End Sub |
OlderNewer