remove password excel (vba)

Sub RemovePasswordFromExcel()Dim excelApp As ObjectDim workbook As ObjectDim excelFilePath As StringDim password As String ' Specify the path to your Excel file and the password excelFilePath = "C:\Path\To\Your\ExcelFile.xlsx" password =…

kick user แบบ กำหนด table

-- Replace 'YourDatabaseName' with the name of your database-- Replace 'YourTableName' with the name of your tableUSE YourDatabaseName;GO DECLARE @TableName NVARCHAR(128) = 'YourTableName'; -- Find the SPIDs accessing the specific…

vba check email format

Function IsValidEmail(email As String) As BooleanDim regex As ObjectDim pattern As StringDim parts() As StringDim domainPart As String ' Initialize the regex object Set regex = CreateObject("VBScript.RegExp") ' Define the…

msgbox all file in folder

Public Sub DisplayTextFileNames()Dim fso As ObjectDim folder As ObjectDim file As ObjectDim folderPath As String ' Specify the path to your directory folderPath = "C:\path\to\your\directory" ' Create a FileSystemObject Set…