Skip to content

Instantly share code, notes, and snippets.

View imamuddinwp's full-sized avatar
:octocat:
Playing with codes

Imam Uddin imamuddinwp

:octocat:
Playing with codes
View GitHub Profile
@imamuddinwp
imamuddinwp / Excel VBA Macro If Else Condition with message
Last active October 21, 2020 05:35
Excel VBA Macro If Else Condition with message; powered by Imam Uddin; imamcu07
Sub Yes_Or_No()
Dim yn_Cond As Integer
yn_Cond = MsgBox("Are you ready for the next operation?" & vbNewLine & "-------------------------" & vbNewLine & " Check 'Data' column carefully !!!", vbYesNo + vbQuestion, "proudLy powered by ImAmUdDiN ")
If yn_Cond = vbYes Then
'code goes here'
@imamuddinwp
imamuddinwp / Unhide All Hidden Sheets : Excel VBA Macro
Created September 28, 2020 07:16
Unhide All Hidden Sheets : Excel VBA Macro; Use the VBA Immediate Window to Unhide All; powered by Imam Uddin; imamuddinwp;
Sub Unhide_TABs()
Dim ws As Worksheet
'The For-Next is a loop that loops through
'each sheet in the active workbook
For Each ws In ActiveWorkbook.Worksheets
'Set the visible property of the sheet (ws)
'to visible (xlSheetVisible)
@imamuddinwp
imamuddinwp / Excel Macro: Get All Workbook name in one list
Last active November 9, 2020 10:15
Excel Macro: Get All Workbook name in one list; imamcu07
Sub Sheet_Names_List()
'
'
'
Worksheets.Add
ActiveSheet.Name = "Tab_List"
Dim ws As Worksheet
Dim x As Integer
x = 1
Sheets("Tab_List").Range("A:A").Clear
@imamuddinwp
imamuddinwp / Filter Cells With Formulas
Created January 2, 2021 03:18
Filter Cells With Formulas: Filter Cells that have or containing formula
Function IsFormula(rng As Range) As Boolean
IsFormula = rng.HasFormula
End Function
Ques:01# I need to filter cells with formulas and not to select them , is that possible by a simple or advanced filter ?
Ques:02# I need to filter cells with formulas and not to select them , is that possible by a simple or advanced filter ?
Ques:03# How to Filter Formula in Excel?
@imamuddinwp
imamuddinwp / Get File Names & Files Path from a folder to a Excel File
Created January 16, 2021 06:36
VBA to get File Names & Files Path from a folder to a Excel File; imam uddin, imamuddinwp
Sub Get_File_Names_List()
Dim Fldr As String, Fname As String
Dim ObjFldr As Object
Dim i As Long
Set ObjFldr = Application.FileDialog(4)
With ObjFldr
.Title = "Choose a folder"
.AllowMultiSelect = False
If .Show = -1 Then Fldr = .SelectedItems(1)
@imamuddinwp
imamuddinwp / Excel Email Validation with Data Validation
Created February 20, 2021 08:06
Excel Email Validation with Data Validation; Powered by Imam Uddin, imamuddinwp
# Get Email from raw data:
=TRIM(RIGHT(SUBSTITUTE(LEFT(A2,FIND(" ",A2&" ",FIND("@",A2))-1)," ",REPT(" ",LEN(A2))),LEN(A2)))
#Get Varified Email:
=AND(ISERROR(FIND(" ",B2)),LEN(B2)-LEN(SUBSTITUTE(B2,"@",""))=1,IFERROR(SEARCH("@",B2)<SEARCH(".",B2,SEARCH("@",B2)),0),NOT(IFERROR(SEARCH("@",B2),0)=1),NOT(IFERROR(SEARCH(".",B2,SEARCH("@",B2))-SEARCH("@",B2),0)=1),LEFT(B2,1)<>".",RIGHT(B2,1)<>".")
@imamuddinwp
imamuddinwp / Excel_Download_Image_From_URL
Created April 26, 2021 06:14
Get Image to cell in excel from URL; Convert image URL to actual image in excel; Powered by Imam Uddin; imamuddinwp.
Sub Excel_Download_Image_From_URL()
'Proudly Powered by Imam Uddin
'https://gist.github.com/imamuddinwp
Dim Pshp As Shape
Dim xRg As Range
Dim xCol As Long
On Error Resume Next
@imamuddinwp
imamuddinwp / BI_Report
Created July 13, 2021 06:57
BI_Report
Sub BI_Report()
'
' Macro4 Macro
'
Selection.CurrentRegion.Select
Selection.Columns.AutoFit
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
@imamuddinwp
imamuddinwp / Trim_Arrangement
Created July 13, 2021 06:58
Trim_Arrangement
Sub Trim_Arrangement()
'
' Macro1 Macro
'
'
Sheets("ExcelOut(Trim)").Select
Rows("1:1").Select
Selection.Delete Shift:=xlUp
'---------------------------------------------
@imamuddinwp
imamuddinwp / PO_Intregation
Created July 13, 2021 06:56
PO_Intregation
Sub PO_Intregation()
'
' Macro1 Macro
'
'
Sheets("ExcelOut(PO)").Select
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Cells.Select