Xldown with a twist - select data only

Kevineamon

New Member
Joined
Aug 1, 2018
Messages
27
Hi guys bit of a weird and wonderful problem here.

I have this Excel sheet, it has a table of formulas, which I have restricted to 100 rows long, by default.

There's a VBA sub that runs, when a drop down list value is changed.
It runs a script - selecting the rows one by one, expanding them to 200 rows long eg. nothing fancy.

(I created a Temp worksheet way earlier... referenced below)

Code:
Worksheets(TempWsName).Activate
ActiveCell.PasteSpecial xlPasteValues

Ok but now I want to go to, jump to the bottom row of the data.

So

Code:
ActiveCell.Select
ActiveCell.Offset(1, 0).Select
ActiveCell.End(xlDown).Select
ActiveCell.Offset(1, 0).Select

But it jumps down to the 100 cell??? WTH dude - I only copied the values... sigh...

Been at this for a while, gonna give up for tonight, but if any of you Excel angels, could come in the night and
shed some light on the subject, it would be much appreciated.

(Btw side note I'm very ashamed of my last piece of Code. Big shout out to Fluffy!
for fixing that terrible code of mine.
And for the WiseOwl videos, for teaching me
No... just no dude :D )
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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