pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi, not sure how to post this but...I am trying convert long number to Integer...
I have a pivot that will not accept the rowsource if i use long to set last row [runtime error: 13]
for example....
Thanks for helping...
I have a pivot that will not accept the rowsource if i use long to set last row [runtime error: 13]
for example....
Code:
[/FONT]
[FONT=Courier New]Dim lr as long[/FONT]
[FONT=Courier New]lr = Range("A" & rows.count).end(xlup).row[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]ActiveWorkbook.Worksheets("Pivot").PivotTables("PivotTable1").PivotCache. _
CreatePivotTable TableDestination:="Sheet4!R" & lr & "C1", TableName:="PivotTable1" _
, DefaultVersion:=xlPivotTableVersion10
Thanks for helping...