Hi!
I am creating a macro and would like to add a pivot table. My table range will vary from file to file, how do I get the macro to select the range of cells that are populated on my sheet?
Thanks!
Tina
Hi!
I am creating a macro and would like to add a pivot table. My table range will vary from file to file, how do I get the macro to select the range of cells that are populated on my sheet?
Thanks!
Tina
if you know the data will start in A1 then I would use sheets("sheetname").Range("A1").Currentregion
if not you can use the UsedRange property of the sheet but this may occasionally include blank rows/columns.
Josie
if at first you don't succeed try doing it the way your wife told you to
Thanks for the reply!
Pretty new to VB, so given what was suggested, how would I write that in VB if it reads:
Thanks!![]()
Please Login or Register to view this content.
Last edited by Cutter; 07-20-2012 at 09:38 PM. Reason: Added code tags
like this for instance
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks