Jealousy

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
There's a whole bunch of useful smilies missing from this place! :)

I think there should sum it up pretty well:
SHOCKED.gif

omg.gif

hide.gif
 
Wasn't only the tone that had gone too low! :eeek:
 
The lastrow discussion has me intrigued.

I don't put myself in the same league as most here, but it seems something is wrong with my sledge hammer as it often starts with the macro recorder and then gets me something like this:

Code:
Sub Macro1()
Dim lRow
Dim ws As Worksheet
    Set ws = Sheets("Sheet2")
    lRow = ws.Cells.SpecialCells(xlLastCell).Row
    MsgBox (lRow)
End Sub

I never thought of trying to find a new way to do it really without starting in a particular column.
 
Also, if I'm only worried about the sheet I'm currently working on, I can simplify it to:

Code:
Sub Macro1()
Dim lRow
    lRow = Cells.SpecialCells(xlLastCell).Row
    MsgBox (lRow)
End Sub

hmmmmm....

I learned something new today. Yeah!
 

Forum statistics

Threads
1,225,375
Messages
6,184,613
Members
453,247
Latest member
scouterjames

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