+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 VBA Help With Previewing Worksheets

  1. #1
    Registered User
    Join Date
    12-09-2003
    Posts
    53

    Excel 2007 VBA Help With Previewing Worksheets

    Hello,

    Is there an easier way to shorten the code to select and preview multiple worksheets in a workbook. I have about 60 worksheets and want to select 50 of them to preview - below is sample code I'm using:

    Sheets("Smith").Activate
    Sheets(Arry("Smith", "Todd", "Fisher", "Quick", "Blown", "Jones", "Wayard")).Select
    ActiveWindow.SelectedSheets.PrintPreview

    I actually have about 50 worksheets I'm referencing to select all of them and preview them using a button.

    Thanks much.
    MAB
    Last edited by mab; 08-22-2014 at 04:40 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Excel 2007 VBA Question

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Additionally, Please read the rules about code tags and add them to your posting.


    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2007 : Excel 2007 question.
    By Singlwll in forum Excel General
    Replies: 1
    Last Post: 11-03-2011, 02:58 PM
  2. [SOLVED] Access 2007 or Excel 2007 Question
    By russkris in forum Access Tables & Databases
    Replies: 2
    Last Post: 10-24-2009, 03:57 AM
  3. Excel 2007 : Excel 2007 Question
    By avlavl in forum Excel General
    Replies: 3
    Last Post: 10-04-2009, 09:22 AM
  4. Excel 2007 question
    By Qfire320 in forum Excel General
    Replies: 4
    Last Post: 02-15-2009, 02:04 PM
  5. Excel 2007 vba question
    By Kaak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2006, 03:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1