+ Reply to Thread
Results 1 to 2 of 2

question about for" do.....loop "for multiple worksheets task

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question question about for" do.....loop "for multiple worksheets task

    Hello, dear People

    I am a beginner for VBA and meet the following problem.

    I have format about 300 worksheets in a workbook. They are with the names 1,2,3,4,......300.

    the data fields are with different length. ( The columns stay the same, but rows vary)

    I have recorded the macros for the formatation. Let us call this macro macro1

    Now how can I with a do loop command to to this for all the worksheets.

    can this be done through such a VBA command

    do while worksheet.name <301
    macro1
    loop

    How to write the command correctly?

    Thanks for your kindly advise.

    Anaking

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: question about for" do.....loop "for multiple worksheets task

    Something like this perhaps

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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