Results 1 to 3 of 3

Applying a macro to all worksheets in workbook

Threaded View

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    26

    Exclamation Applying a macro to all worksheets in workbook

    Hi.

    I am currently working on a loan amortization table. I'm getting some rounding errors in some of my values and i was wondering if anyone knew how to eliminate these.

    I was also wondering how i would go about applying the following to all the worksheets in the workbook?

    Sub testing()
    
    Dim myVariable As Long
    myVariable = Range("E" & Rows.Count).End(xlUp).Row
    Sheet1.Range("J8") = "=Sum(E19:E" & myVariable & ")"
    
    End Sub
    thanks in advance!
    Last edited by Leith Ross; 03-06-2013 at 03:26 PM. Reason: Added Code Tags

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