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 / Split Each Excel Sheet Into Separate Files.txt
Last active October 17, 2020 07:03
Split Each Excel Sheet Into Separate Files : Excel VBA Macro imamuddinwp.
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
@imamuddinwp
imamuddinwp / Sheets_To_Excel_Files.txt
Last active October 20, 2020 10:14
Split a workbook to separate Excel Files ; powered by Imam Uddin, imamuddinwp; "split excel sheets into multiple files" "split excel sheet into multiple sheets based on rows" "split excel sheet into multiple files based on rows" "split excel sheet into multiple files based on column vba" "split excel into multiple files based on column" "how to …
Sub Sheets_To_Excel_Files()
'
'
'
'________powered by Imam Uddin
'________https://about.me/imamuddinwp/
'
'
Dim Numb As Integer
@imamuddinwp
imamuddinwp / Merge_All_In_One.txt
Created October 20, 2020 11:19
Merge multiple worksheets into one; Combine multiple worksheets into one; "Keyword" "merge multiple sheets into one sheet vba" "merge multiple excel sheets into one workbook online free" "consolidate data from multiple worksheets in a single worksheet" "combine multiple excel sheets into one macro" "copy data from multiple worksheets into one" "…
Sub Merge_All_In_One()
'
'
'
' https://about.me/imamuddinwp/
'
'
'
Dim fnameList, fnameCurFile As Variant
Dim countFiles, countSheets As Integer
@imamuddinwp
imamuddinwp / Run-Same-Macro-On-Selected-Files
Created November 8, 2020 09:41
How To Run A Macro At Same Time Across Multiple Workbook Files?
Sub Run_Macro_Dir()
'
' Macro for running on multiple files in seleted folder.
'
' Imam Uddin;
'
'https://github.com/imamuddinwp
'
'
Dim xFd As FileDialog
@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 / 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
@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