[Excel VBA code] Convert a string to Uppercase letters

excel-vba-convert-string-to-uppercase-output

Excel VBA code to convert a string to uppercase letters. It converts all lowercase letters to uppercase.

Output:

VBA code to capitalize each word of a string [Excel]

capitalize-each-word-string-VBA-excel

Below is the Excel VBA code to capitalize each word of a string.

Output:

Main domain .htaccess file affects addon domain [SOLVED]

If the rewrite rules in main domain’s .htaccess file are affecting the addon domain, then add below code (at end) in main domain’s .htaccess file. You can find the .htaccess file at public_html/ <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?addondomain\.com Rewriterule .* – [L] </IfModule> Note: Replace addondomain in above code with your addon domain In […]

DOS command to list files in a directory into a text file

DOS-command-listing-specific-files-text-file

Looking for DOS command to create file listing of a folder and its sub-folders into a text file? Here are the simple steps. Before using the commands, do below steps Open Command Prompt Goto the folder path from where you want to list the files.  Run below commands In below examples, C:\Main-Folder\Folder> is the folder path […]

Strip trailing whitespaces from string [Python]

strip-trailing-white-spaces-Python-code

If you want to remove extra whitespaces from start and end of a string, use strip() method in Python. strip() method removes all default whitespaces (spaces and tabs \t) and returns the copy of the string. Python code to strip trailing whitespaces from string

Note: Code works in both Python 2 and 3 Output […]

Python: Position of next occurrence of a sub-string

position-of-second-occurence-python

Python code to get the position of next or second occurrence of a sub-string within a string.

Note: Above code works in both Python 2 and Python 3 Output:

Python: Replace/remove string between two delimiters/characters

This Python code helps you to to replace a string between two delimiters or characters delete/remove string between two characters or delimiters Python code to replace string between two delimiters

Python code to delete/remove string between two characters/delimiters Replace 5th line of above code with below one

Note: This code works in both […]

Python script to extract string between two delimiters

Simple python script to extract sub string between two delimiters of a string. Examples of delimiters are brackets, parentheses, braces, single or double quotes etc. You can also customize this code to extract the string between two special characters or two sub strings. Comments on each line of code explains you to easily understand the code. Note: […]

VBA macro to find duplicates in excel

macro-duplicates-highlighted-in-red

VBA macro to find duplicates in excel sheet. This macro finds the duplicates in user selected range and highlights them in light red color. Also see VBA macro to remove duplicates VBA code to find and highlight duplicates

Add above code to your excel workbook How to use this macro Select the range (column/row/columns […]