Posts

Multi Word DOC print

Image
How to print multi doc file  Sub PrintMultipleFiles()     Dim objWord As Object     Dim objDoc As Object     Dim strFolder As String     Dim strFile As String     ' Set the folder path where your documents are located     strFolder = "C:\YourFolderPath\"     ' Create an instance of Word     Set objWord = CreateObject("Word.Application")     objWord.Visible = False ' Set to True if you want Word to be visible     ' Loop through each file in the folder     strFile = Dir(strFolder & "*.doc") ' Change the file extension if necessary     Do While strFile <> ""         ' Open the document         Set objDoc = objWord.Documents.Open(strFolder & strFile)         ' Print the document         objDoc.PrintOut         ' Close the document    ...

django create website and application

01 create folder test  02 install python least virsion 03 test open folder  04 run cmd  05 django-admin 06 django-admin startproject test 07 python manage.py runserver  08  python manage.py runserver4444 09  python manage.py createsupersuper

Air Compressor CFM Calculation

CFM (Cubic Feet per Minute) is a unit of measurement used to quantify the airflow capacity of an air compressor. It indicates the volume of air that the compressor can deliver in one minute. To determine the CFM of an air compressor, you typically need to refer to the manufacturer's specifications or perform a measurement using the following steps: Prepare the necessary equipment: You will need a stopwatch or a timer, a container with a known volume (e.g., a gallon or a cubic foot), and a pressure gauge. Empty and pressurize the compressor: Ensure that the compressor tank is empty and all air is released. Start the compressor and allow it to build up pressure until it reaches the cut-off pressure (the maximum pressure it can achieve). Measure the time and pressure: Use the stopwatch or timer to record the time it takes for the compressor to reach the cut-off pressure. Simultaneously, monitor the pressure gauge to note the cut-off pressure. Calculate the volume: Once you have the ti...

Multi file print

1 open Excel and save as xlsm extension 2 paste this code  3 set your folder path 4 set your file extension  5 run code  ***************** Sub PrintMultipleFiles()     Dim objWord As Object     Dim objDoc As Object     Dim strFolder As String     Dim strFile As String     ' Set the folder path where your documents are located     strFolder = "C:\YourFolderPath\"     ' Create an instance of Word     Set objWord = CreateObject("Word. Application")     objWord.Visible = False ' Set to True if you want Word to be visible     ' Loop through each file in the folder     strFile = Dir(strFolder & "*.doc") ' Change the file extension if necessary     Do While strFile <> ""         ' Open the document         Set objDoc = objWord.Documents.Open( strFolder & strFile)         ' Print the docum...

PDF file to a Word

VBA code that converts a PDF file to a Word document using Excel's built-in capabilities: ```vba Sub ConvertPDFtoDOC()     Dim objWord As Object     Dim objDoc As Object     Dim pdfPath As String     Dim docPath As String          ' Path to the PDF file     pdfPath = "C:\path\to\input.pdf"          ' Path to save the Word document     docPath = "C:\path\to\output.docx"          ' Create an instance of Word application     Set objWord = CreateObject("Word.Application")          ' Disable alerts and visibility     objWord.DisplayAlerts = False     objWord.Visible = False          ' Open the PDF file     Set objDoc = objWord.Documents.Open(pdfPath)          ' Save the document as a Word document     objDoc.SaveAs2 docPath, 16 ' 16 is ...

How to use Git

Git is a popular version control system used for tracking changes in files and collaborating on software development projects. Here's a step-by-step guide on how to use Git: 1. Install Git: Start by installing Git on your computer. You can download the official Git installer from the Git website ( https://git-scm.com/downloads ) and follow the installation instructions for your operating system. 2. Set up Git: Once Git is installed, open a terminal or command prompt and configure your Git username and email address. Use the following commands, replacing "Your Name" with your actual name and "youremail@example.com" with your email address: ``` git config --global user.name "Your Name" git config --global user.email youremail@example.com ``` This step is important as Git uses this information to associate your commits with your identity. 3. Create a new Git repository: Navigate to the directory where you want to start a new Git repository or create a new...