+ Reply to Thread
Results 1 to 3 of 3

Question regarding running Macro across multiple sheets

  1. #1
    Registered User
    Join Date
    09-26-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2010
    Posts
    6

    Question regarding running Macro across multiple sheets

    Hello - Sorry if it seems like a novice question, but I'm in my first week of using VBA.

    I have the following code that I want to run. Right now it's running the Macro and returning all the Values to the sheet that I'm on when I initiate the macro ("Interest Payments"). I want the code to return the values to the appropriate sheet instead. How can I do this?

    Please Login or Register  to view this content.

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

    Re: Question regarding running Macro across multiple sheets

    You would need to reference the worksheet, which in your case is the variable "Sh", for each applicable line of code. Something like this (you may need to tweak for your specifics):

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Question regarding running Macro across multiple sheets

    Another one...

    Please Login or Register  to view this content.
    My guess is you may want to put the actual date in column A instead of the =TODAY() formula. The Today function will change to the current date every day. If yes, change this line...
    .FormulaR1C1 = "=TODAY()"
    To this...
    .Value = Date
    Last edited by AlphaFrog; 10-01-2014 at 07:36 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Hidden Sheets and running Macros Quick Question
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2013, 09:51 PM
  2. Quick Question about applying macro to multiple sheets
    By sale_MB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2013, 10:25 AM
  3. Running Same macro on Multiple sheets
    By shilpigupta79 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2013, 03:29 AM
  4. Running Macro on multiple sheets
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-21-2013, 12:10 PM
  5. Running macro in multiple sheets
    By shak1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-18-2009, 06:36 AM

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