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 My_Operation_Name() | |
'Expired Date Validations | |
Dim onLineHelp As Object | |
Dim cLoseBook As Integer | |
Dim exdate As Date | |
exdate = "27/03/2020" | |
Set onLineHelp = CreateObject("Wscript.Shell") | |
If Date > exdate Then | |
cLoseBook = MsgBox("Internal Error Occured!!!" & vbCrLf & " " & vbCrLf & "Data or file missing in Execution Time; DO YOU NEED ONLINE HELP ???" & vbCrLf & " " & vbCrLf & "powered by ImAmUdDiN => fb.com/imamcu07", vbYesNo, "Message From Md.ImAmUdDiN") | |
If cLoseBook = vbYes Then |
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 My_operation_name() | |
'After ending all operations--------- | |
ChDir "D:\ImAmUdDiN\Daily-Report" | |
ActiveWorkbook.SaveAs Filename:= _ | |
"D:\ImAmUdDiN\Daily-Report\DLS-" & Format(Now(), "DD-MMM-YYYY") & ".xlsx", FileFormat:= _ | |
xlOpenXMLWorkbook, CreateBackup:=False | |
ActiveWorkbook.Save | |
'--------All Done----------- |
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
Move one cell down | |
ActiveCell.Offset(1, 0).Select | |
Move one cell up | |
ActiveCell.Offset(-1, 0).Select | |
Move one cell right | |
ActiveCell.Offset(0, 1).Select | |
Move one cell left |
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
MsgBox prompt:="Congratulations, Operation Successfull !!!" & vbNewLine & "-------------------------" & vbNewLine & "proudLy powered by" & vbNewLine & "Md.ImAmUdDiN" & vbNewLine & "https://about.me/imamcu07", _ | |
Buttons:=vbInformation + vbMsgBoxHelpButton, _ | |
Title:="Successful Message From Md.ImAmUdDiN " |
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
If IsEmpty(Range("A2").Value) = False Then | |
MsgBox prompt:="Previous Data May Already Exist, Please Clear Previous Data!!" & vbNewLine & "-------------------------" & vbNewLine & "proudLy powered by" & vbNewLine & " --> Md.ImAmUdDiN <--" & vbNewLine & "https://about.me/imamcu07", _ | |
Buttons:=vbInformation + vbMsgBoxHelpButton, _ | |
Title:="Message From Md.ImAmUdDiN " | |
Range("A2").Select | |
Else | |
'Code to paste data or othere operation' | |
End If |
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
Dim ConfDate As String | |
ConfDate = InputBox("Input Valid Date, Date Format Example: --> 25.04.2019 ", "ProudLy powered by : ImAmUdDiN ") | |
Range("G2").Value = ConfDate | |
' Date autofill by Flash Fill | |
Range("G2").FlashFill | |
Range("G2").Select |
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 Sheets_To_File() | |
Dim filePath As String | |
filePath = Application.ActiveWorkbook.Path | |
Application.ScreenUpdating = False | |
Application.DisplayAlerts = False | |
For Each ws In ThisWorkbook.Sheets | |
ws.Copy | |
Application.ActiveWorkbook.SaveAs Filename:=filePath & "\" & ws.Name & ".xlsx" | |
Application.ActiveWorkbook.Close False | |
Next |
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 Delete_Fitered_Rows() | |
' | |
' Macro1 Macro | |
' | |
' | |
Dim yn_Cond As Integer | |
yn_Cond = MsgBox("Are you Confirm to DELETE VISIBLE ROWS??/" & vbNewLine & "-------------------------" & vbNewLine & " You may lost your data !!!", vbYesNo + vbQuestion, "proudLy powered by ImAmUdDiN ") | |
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 Sheets_To_Excel_Files() | |
' | |
' | |
' | |
'________powered by Imam Uddin | |
'________https://about.me/imamuddinwp/ | |
' | |
' | |
Dim Numb As Integer |
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_All_In_One() | |
' | |
' | |
' | |
' https://about.me/imamuddinwp/ | |
' | |
' | |
' | |
Dim fnameList, fnameCurFile As Variant | |
Dim countFiles, countSheets As Integer |