+ Reply to Thread
Results 1 to 3 of 3

Want to run the same macro on multiple worksheets without referencing the sheet name

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Illinois
    MS-Off Ver
    Excel 2013
    Posts
    27

    Want to run the same macro on multiple worksheets without referencing the sheet name

    I found the following snip of code from another website and it is working for two portions of my macro. The first works to change all "?" to 0 and then the second part works to take the contents of cell A4 and paste in column L. I am having problems getting the rest of the macro to work.
    Any suggestions would be appreciated! Thank you!!

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    259

    Re: Want to run the same macro on multiple worksheets without referencing the sheet name

    Just having a quick look. It looks like column K:K is a % and it is formatting that with a colour if its a %. Not sure why the last part is not working? How many worksheets do you have? It should add the values to F1, which is (6,1)

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Illinois
    MS-Off Ver
    Excel 2013
    Posts
    27

    Re: Want to run the same macro on multiple worksheets without referencing the sheet name

    Thanks for taking a look!

    Yes, K:K is a % and we are looking to say if the value in K<-0.05 or if the value in K>0.05 then color. This isn't working on multiple sheets.

    For the last portion, all of my data starts in row 9, and I would like to format the titles in row 6

    Both of these are not currently running on my sheets. In total I have 32 worksheets in the workbook.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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