Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Nou pe simpatie: carmenitza Profile
 | Femeie 24 ani Ialomita cauta Barbat 24 - 48 ani |
|
|
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #1 |
TRaPModerator
Postari: 960
|
|
The following code resizes the Table in the active sheet by the value I add in cell D1:
Sub Tbl_Resize()
Dim tbl As ListObject Dim lr As Long
Set tbl = ActiveSheet.ListObjects(1) '"Table1" lr = ActiveSheet.Cells(Rows.count, "A").End(xlUp).Row If IsNumeric(Range("D1").Value) Then lr = lr + Range("D1").Value Else MsgBox "The value inserted in cell D1 is not a number" Exit Sub End If
tbl.Resize Range("$A$5:$L$" & lr)
End Sub |
|
|
| |
|