Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2007, 09:28 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks allenm! That pointed it at the right sheet.
Then the next line of code gave me an error.

Code:
ActiveSheet.PivotTables("PivotTable3").SmallGrid = False
"Unable to get the PivotTables property of the worksheet class"
Thats what the error says. Why might this happen?

 
Old May 11th, 2007, 02:30 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
ActiveWorkbook.RefreshAll
Jeez! I found this one line of code and I think it does everything I need without having to go through anything else. I just bring in the new data and run that line of code and it works perfectly to update the pivot tables.

So one more thing, does anyone know how to make a worksheet to where it can't be deleted by the user?

Thanks,
Dave








Similar Threads
Thread Thread Starter Forum Replies Last Post
calling to xlam macro from macro inside xlsb SteveB Excel VBA 0 June 30th, 2008 06:43 PM
Open Workbook,Copy Sheet,Move Sheet, Close/Save ptrussell2009 Excel VBA 0 June 13th, 2008 02:28 PM
access function in data sheet(another sheet) jani Excel VBA 1 May 21st, 2008 07:15 PM
How to run Macro on entry to new sheet? Wazar Excel VBA 4 May 16th, 2007 08:35 AM
Show Sheet after running macro sridevi Excel VBA 2 November 5th, 2004 08:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.