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 / 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 / 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 / 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 / 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 / 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 / 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 / Delete Filtered Data : Excel Macro, Excel VBA
Last active October 19, 2020 03:00
This is a gist on about Delete Filtered Data : Excel Macro, Excel VBA; powered by Imam Uddin; imamuddinwp.
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 ")
@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 / Excel VBA Macro: Dialogue Box to Input Data in run time
Created July 14, 2020 08:47
Excel VBA Macro: Dialogue Box to Input Data in run time
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