Monday, November 20, 2017
Thursday, January 19, 2017
Ever been in the situation where you need to rename a bunch of files without giving them then same name with a number extension? Ever needed to rename a long list of images so they're search engine friendly? Well if the answer is yes, then your in for a real treat. There's a quick and easy solution to renaming files using Microsoft Excel (or any other spreadsheet software) and the windows command prompt.
For this example, I'll be renaming a folder of images so the name replaces spaces with dashes and adds a keyword to the end, making them more SEO friendly.
Here's how to go about doing this...
Step 1 - Generate Your File List
First thing is to get a list of all the files you want to rename. Start by opening the command prompt by clicking Start then typing
cmd(in XP, hit run and then type cmd). This will open up the command prompt.
Then we need to change the current directory to the one we want. An easy way of doing this is to open the folder and copy the location. Got the command prompt, type
cdand then right-click and hit paste. Hit enter and the directory we're working within will change to the one with all our images in.
Now we need to generate the list of images. Type this:
dir /b > _list.txt
This will create a list of all the files in the folder and export them to a new file called
_list.txt. You can call this file what you want.
Step 2 :
The fun starts now. Fire your copy of Microsoft Excel or Google Docs Spreadsheets and paste those file names into the first spreadsheet column.
And that's it tadaa all renamed.
Tuesday, January 17, 2017
If you want to extract and save the images from comments into a folder, please do as follows:
1. Copy the sheet which contains the comments with images that you want to save into a new blank workbook.
2. And then click File > Save As to save this new workbook as Web Page format in a specific folder, see screenshot:
3. Then click Save button to save the file, then go to the specific folder to view the saved images, two files are generated in the folder, one is the html file, and another is a folder that contains all the images and other files, see screenshot:
Extract images from comments into cells with VBA code
If you want to extract the images from comments into cells as following screenshot shown, here, I can create a VBA code for you, please do as this:
1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
VBA code: Extract images from comments into cells:
3. Then press F5 key to run this code, and all the images of the comments in current worksheet have been extracted into the next column cells, see screenshot: