When Updating doesn't remove previous lines?

Johny1900

Board Regular
Joined
Dec 20, 2007
Messages
54
Hi,

I have a sheet which takes data from several sheets (they on there turn do some calculations).
Now in the main sheet I take the data of the articles and when I actualize it, it seems to add the latest SYNTAX results to the sheet.
Is there a way so it "resets/cleans" the data on the sheet and then adds the results to it?

Thx
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Re: hen Updating doesn´t remove previous lines?

Anybody? Please.....
Is there some chebox where it always returns the latest result of the SQl syntax? So it just add the result, but first clears the rows?

thx
 
Upvote 0
Re: hen Updating doesn´t remove previous lines?

I think you need to be a bit clearer about what it is you're doing and what you're trying to accomplish.
 
Upvote 0
Re: hen Updating doesn´t remove previous lines?

I think you need to be a bit clearer about what it is you're doing and what you're trying to accomplish.

oK , let me see:
I have in a spreadsheet a couple of sheets. And sheet one gets it data using a select from the DB.
I noticed that whenever I execute the SQL syntax, it just adds the rows.
And what it should do is remove all the rows of the screen and execute the select and then show me the new results. But now it just adds the new lines.

I am not sure, maybe I am doing something wrong. The doubled rows are always the same.
 
Upvote 0
Re: hen Updating doesn´t remove previous lines?

You can use code the pre-delete the cells. You can record a macro updating your query and add:

Cells.ClearContents

to the beginning.
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,039
Latest member
Mbone Mathonsi

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