help Required

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
http://www.mrexcel.com/forum/showthread.php?p=2624084#post2624084

hi ,

i am importing some data from a web page i want two things to be done in the macro given below.

1. the page no will change to next automaticlly & "URL;http://www.medguideindia.com/show_brand.php?nav_link=&pageNum_rr=9&nav_link=&selectme=9")

2. the row no where the data is paseting will go down further automatically. ( Range("A351").Select )


here is the code.

Sub importdata()
'
' importdata Macro
' Macro recorded 2/24/2011 by arvindv
'
' Keyboard Shortcut: Ctrl+n
'
With Selection.QueryTable
.Connection = _
"URL;http://www.medguideindia.com/show_brand.php?nav_link=&pageNum_rr=9&nav_link=&selectme=9"
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "15"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
Rows("2:51").Select
Selection.Copy
ActiveSheet.Next.Select
Range("A351").Select
ActiveSheet.Paste
ActiveSheet.Previous.Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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