Hi. I've got a workbook, with a sheet 'tblPrices', which has a listobject named 'Prices'.
I'm having problems with a code that I'be simplified as follows:
When trying to access the DataBodyRange property, a error message is shown:
I've intentionally activated the worksheet and selected the listobject just to dismiss any focus issue. I have no idea what's going on here.
Thanks a lot,
JuanPa
I'm having problems with a code that I'be simplified as follows:
Code:
[FONT=Courier New]...
[COLOR=DarkSlateBlue][COLOR=Navy]With[/COLOR] [/COLOR]ThisWorkbook.Worksheets("tblPrices")
.Activate
[COLOR=DarkSlateBlue][COLOR=Navy]With[/COLOR] [/COLOR].ListObjects("Prices")
.Range.Select
[COLOR=Navy]Debug[/COLOR].[COLOR=Navy]Print [/COLOR].DataBodyRange.Address
[COLOR=Navy]End With[/COLOR]
[COLOR=Navy]End With[/COLOR]
...[/FONT]
Code:
Error 91 Object Variable or With block variable not set
Thanks a lot,
JuanPa