I have this VBA code in a Excel spreadsheet:
Now, cell $B$3 has been assigned the name "Volume". I want to set the vTarget variable using the name "Volume" rather than the cell address. I've tried different syntax but always get some kind of error.VB Code:
Dim vTarget As range Private Sub Workbook_Open() Set vTarget = Range("Sheet1!$B$3") End Sub




Reply With Quote