• Select all sheets vba (XP)

    Author
    Topic
    #448978

    Hi

    I recorded a macro to select all sheets, but it used the Array(1,2,3,4,) method with the sheet names.

    I want to be able to select all sheets, but use the module in various workbooks, ie with varying amounts of sheets.

    Can I do something like

    p = Sheets.Count
    v = Array(1, 2, -to p) ‘ how can i enumerate this?
    Sheets(v).Select

    or is there a nice simply way?

    Viewing 0 reply threads
    Author
    Replies
    Viewing 0 reply threads
    Reply To: Select all sheets vba (XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: