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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I could help you but 4shared requires registering please use skydrive or dropbox to share a file
 
Upvote 0
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
the workbook you posted with the changes I suggested does no raise any error
it works fine
sergio
 
Upvote 0

Forum statistics

Threads
1,216,446
Messages
6,130,699
Members
449,586
Latest member
spg5150

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