+ Reply to Thread
Results 1 to 3 of 3

Apply macro to multiple sheets.

  1. #1
    Registered User
    Join Date
    02-16-2013
    Location
    Folsom, CA
    MS-Off Ver
    Excel 2010
    Posts
    47

    Apply macro to multiple sheets.

    I have a simple macro that I would like to run through all sheets of my workbook without having to run each sheet individually. I have tried some other macros that supposedly do this, but I can't seem to get them to work with my code. I'm a beginner, so my knowledge is limited. The macro is designed to change lowercase text to uppercase.

    Sub Uppercase()
    ' Loop to cycle through each cell in the specified range.
    For Each x In Range("A1:A5")
    ' Change the text in the range to uppercase letters.
    x.Value = UCase(x.value)
    Next
    End Sub

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Apply macro to multiple sheets.

    Also loop through each worksheet;

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-16-2013
    Location
    Folsom, CA
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Apply macro to multiple sheets.

    Thank you so much! I would really like to take some classes to learn how to write this stuff.

+ 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. Apply VBA code to multiple sheets
    By PaulusKabouter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2013, 11:37 AM
  2. How do I apply a filter across multiple sheets
    By Dan1956 in forum Excel General
    Replies: 0
    Last Post: 08-07-2012, 09:33 AM
  3. Macro to apply subtotals to multiple sheets
    By Scotbot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2012, 09:10 AM
  4. Is It Possible To Apply Changes To Multiple Sheets
    By globalpontoon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-16-2011, 07:45 PM
  5. Apply Print Settings to Multiple Sheets via MACRO
    By ShaneBell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2009, 08:48 PM

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