Need Help in editing macro which is recorded

svsaug6

New Member
Joined
Mar 28, 2013
Messages
26
dear,
i have recorded a macro in excel to fetch some data from internet and have assigned to a button in sheet1.
but i want to edit this macro that when i click this button in sheet 1, it should download the data in to second sheet named 'option_chain'
without editing when i click the button it's downloading the data in to first sheet it self. i have changed the name to 'option_chain' but it's giving error. can some one help me in this issue that when i click the button in first sheet it should download the data in to second sheet which named 'option_chain'
my file:
ex1 - Download - 4shared
thank you....
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
yes sir, it was working fine before changing the name 'current sheet' to option_chain' but it was updating in first page it self only. i need to update in second sheet that's why i changed the sheet name but failed....
 
Upvote 0
The probles is that you have changed Activesheet to option_chain
You should have changed Activesheet to Sheets("option_chain")
So line 8 should be
With Sheets("option_chain").QueryTables.Add(Connection:= _
And line 33 should be
With Sheets("option_chain").QueryTables.Add(Connection:= _

Reason is option_chain is not an object is just a name
I hope this helps
 
Upvote 0
The probles is that you have changed Activesheet to option_chain
You should have changed Activesheet to Sheets("option_chain")
So line 8 should be
With Sheets("option_chain").QueryTables.Add(Connection:= _
And line 33 should be
With Sheets("option_chain").QueryTables.Add(Connection:= _

Reason is option_chain is not an object is just a name
I hope this helps


thank you for your reply...but the problem is with range cell, pls find the debugger screen as follows...

 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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