Notifications
Clear all
2024 - VBA & Macros
2
Posts
2
Usuários
0
Reactions
781
Visualizações
Topic starter
Pessoal!
O codigo abaixo identifica a ultima linha preenchida em uma planlha:
n_lastrow_for = Sheets("Plan1").Range("A100000").end(xlUP).Row
Gostaria de saber qual o codigo utilizar para descobrir a ULTIMA COLUNA PREENCHIDA??
Abraços,
Postado : 04/03/2015 1:52 pm
Boa tarde!
Tente
Fonte: http://www.globaliconnect.com/excel/ind ... Itemid=475
Fonte: http://www.rondebruin.nl/win/s9/win005.htm
Sub UltCol() Dim LastColumn As Long With ActiveSheet.UsedRange LastColumn = .Columns(.Columns.Count).Column End With MsgBox LastColumn End Sub
Att
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 04/03/2015 2:07 pm