Edgarvelez
Board Regular
- Joined
- Jun 6, 2019
- Messages
- 197
- Office Version
- 2016
- Platform
- Windows
Hi All,
I have this code, works great for what I need but I need it to work for a dynamic range staring in B7.
I have this code, works great for what I need but I need it to work for a dynamic range staring in B7.
VBA Code:
Dim sh1 As Worksheet, sh2 As Worksheet, sh3 As Worksheet
Set sh1 = Sheets("DashBoard")
Set sh2 = Sheets("Sheet1")
Set sh3 = Sheets("BOL")
sh1.Range("B7").Select
Dim rng As Range
Dim formulaCell As Range
Set rng = Selection
For Each formulaCell In rng
If formulaCell.HasFormula Then
formulaCell.Formula = formulaCell.Value
End If
Next formulaCell
End Sub