Answers for "excel vba set value of first cell in range"

VBA
1

excel vba first column in range

Dim rRange As Range
Dim rDuplicate As Range

Set rRange = ActiveSheet.UsedRange
lFirstRow = rRange.Row
lLastRow = rRange.Rows.Count + rRange.Row - 1
lFirstColumn = rRange.Column
lLastColumn = rRange.Columns.Count + rRange.Column - 1
' New reference to current range (can be truncated)
Set rDuplicate = Range(Cells(lFirstRow, lFirstColumn), _
      Cells(lLastRow, lLastColumn))
Posted by: Guest on January-14-2021
0

vba first cell in range

' Example:
rYourRange.item(1) 
' rYourRange = Selection (or whatever range you want)

' Syntax
<YourRange>.item(1)
Posted by: Guest on May-07-2021

Code answers related to "excel vba set value of first cell in range"

Code answers related to "VBA"

Browse Popular Code Answers by Language