Speed up code

Kavy

Well-known Member
Joined
Jun 25, 2007
Messages
607
Hello All, big favor to ask if anyone is willing to do it.
If I e-mail me code to anyone for one of my subs (in excel vb userform)
anyone willing to take a look at it and see if they can speed it up, if anyone has time on there hands?

If anyone responds , heh, thanks!

When I say speed up, i mean more effiant for the computer to run so it goes quicker, thanks!
 

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.
Never seen that before, that will give me the last row that has data in it?
Can i specify that its the last row with date in the first collumn? (not needed just a safegaurd)

Hey thanks for your help by the way!
 
Upvote 0
It will give you the row number of the cell immediately below the last cell with data in column A. (Which is what your code does - I think).

If you want the row number of the last cell with data in column A :-

TTags=[A65536].End(xlUp).Row
 
Upvote 0
Ya your right , I am using the first row without data, oops!
Any other suggestions?

Hey Kenneth, Sorry I didn't see your reply, thanks for that!
 
Upvote 0
I used TTags = wsl.[A65536].End(xlUp).Row

This is where wsl is my worksheet, I kinda guessed at this but it gave me the same result as my loop, is this correct?
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,883
Messages
6,127,555
Members
449,385
Latest member
KMGLarson

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