Special Macro/VBA NEEDED

jspiegz

New Member
Joined
Feb 21, 2011
Messages
6
Anyone have, or can make a macro that opens hyperlinks in the C Collumn, in the site, look and copy an email adress (maybe copies text with a @ next to it) and then pasting it in the D collumn, I need this URGENT.

I have office 2010, and also, how would I run the macro/VBA
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Have you tried googling it?:)

Please try this thread link i think it very relevant to what you're looking or could be quick fix for now. Copy the whole thing from the web and then re-org. the email address or maybe you can try web query too.

Can i see your web address and what u want to copy from there?:)
 
Upvote 0
Pedie, I have searched, Im just SO limited on time..

I just need the macro to go into the hyperlinks, and copy any potential email andresses and post it next ot the hyperlink..
How would I use it anywyas..
 
Upvote 0
Have you tried googling it?:)

Please try this thread link i think it very relevant to what you're looking or could be quick fix for now. Copy the whole thing from the web and then re-org. the email address or maybe you can try web query too.

Can i see your web address and what u want to copy from there?:)

SG PAULINE BEAUDIN
Is the name on C46
Hyperlink on it is
http://www.cpepirouette.com/cpe_google_map.php?mf_id=536

the email i want would be: the email address shown on the linked web page
 
Last edited by a moderator:
Upvote 0
try this

Code:
[/FONT]
[FONT=Courier New]Option Explicit[/FONT]
[FONT=Courier New]Sub CopywebContententTOsheet()
With ActiveSheet.QueryTables.Add(Connection:= _        "URL;http://www.cpepirouette.com/_liste_milieux_familiaux/mf_id/536", _        Destination:=Range("$C$46"))
        .Name = "536"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
    End With
Application.Goto Range("C146")
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top