• Home
  • Blog
  • Resume
  • Contact
  • Projects
  • Gallery
  • Amit’s Resume
  • About Nagpur
KEEP IN TOUCH

Importing IE bookmark

Feb12
2005
2 Comments Written by admin

Steps to get your bookmarks in a database format

First way:

Open Excel>Data>Import External Data>New Web QueryPaste the address of your bookmark on your hardisk in the web query addressSelect the tableImport it to ExcelYou’ll see first column has all the addresses of the links, and after few columns the text for that hyperlinkPress Ctrl + H (Find and replace) to remove all the unessesary characters in those two columnssuch as, < ,”, etcAutoFilter on the first column for blank rows and delelte those blank rows.There you go; have two columns one with the address and one with the text.If you want to make that address as hyperlink you can use Excel funtion HYPERLINK, check help on that.

Second way;Copy all the text from the from the bookmark.htm file to cell A1Then paste this code after pressing Alt + F11

Sub giveaddress()
Application.ScreenUpdating = False
Dim k As Hyperlink
Dim i As Byte
i = 1

With ActiveSheet
For Each k In ActiveSheet.Hyperlinks
.Cells(i, “B”) = k.Address
.Range(“A” & i).Copy
.Range(“C” & i).PasteSpecial xlPasteValues
i = i + 1
Next
.Columns(“C:C”).Cut
.Columns(“A:A”).Select
ActiveSheet.Paste
End With
Application.ScreenUpdating = True
End Sub

Run this macro pressing Alt + F8 in the worksheet you’ve pasted the links and select macro giveaddress and run it.
Column B will have the addresses for the links in column A you’ll have the text.
Formula to get the site name, i.e. text of a URL excluding http
=IF(MID(C3,1,11)=”http://www.”,MID(C3,12,FIND(“/”,C3,10)-12),”")
Formula to get just the site name, i.e. including http and .com or .org
=MID(C2,1,FIND(“/”,C2,FIND(“//”,C2,1)+2))

No related posts.

Posted in Uncategorized - Tagged Alt F8, HYPERLINK, URL
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
« Excel Function to check if text is palindrome or not
» Change the creation date of a workbook

2 Comments

  1. JRod - PORTUGAL's Gravatar JRod - PORTUGAL
    February 15, 2005 at 4:30 pm | Permalink

    Congratulations for your Excel Blog.

  2. JRod - PORTUGAL's Gravatar JRod - PORTUGAL
    February 18, 2005 at 11:02 pm | Permalink

    Hi, Ashutosh!
    I knew through http://www.technorati.com
    Cheers

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Tags

Access Alt F8 Books boxplot cells charts count cursor dashboard data mining dbase design error excel excel functions export filter flip LaTex MS query Number Err ODBC pipes Press Alt F11 Public Sub python R random numbers Range Cells report scripting software sparklines SQL SQL server stack columns statistics stemming string tag cloud text mining UDF VBA visualization wildcard

Network

View Ashutosh Nandeshwar's profile on LinkedIn

Recent Comments

  • larry on Access Export to Excel (2007)
  • Betty Chou on Projects
  • Rwill on Access Export to Excel (2007)
  • Bharathi on The search key was not found in any record in Access
  • Michael on The search key was not found in any record in Access

Related Posts

No related posts.

EvoLve theme by Blogatize  •  Powered by WordPress nandeshwar.info