Prev Previous Post   Next Post Next
  #1   Report Post  
DME
 
Posts: n/a
Default Macro Help

I have a sheet that is updated on a daily basis, a template of sorts. Each
day the user inputs the prior days information into the "Daily Sheet". I
then have to manually go into my "Monthly" total spreadsheet and input the
numbers from the daily sheet. Thus producing a Month To Date total.

Now I am sure there is a better way to update my "Monthly" spreadsheet
without manually inputting them each day. I have tried setting up a Command
Button that activates a macro that would go to the Daily spreadsheet and
grab the numbers I need to have. The numbers in the "Daily" sheet are the
same cells everytime. For instance Cells O5 AND O24 in thh Daily Supply
spreadsheet. Here is my problem. I have the following code:

ActiveCell.FormulaR1C1 = "='Daily Supply'!R[-6]C[12]+'Daily
Supply'!R[13]C[12]"
ActiveCell.Offset(1, 0).Range("A1").Select

I created this Macro from cell C11 in the "Monthly" spreadsheet. It works
fine in that cell, but when I run it from cell C12, it pulls the information
from Cell O6 and O25 in the "Daily" Spreadsheet. I have tried relative
reference when recording the Macro and have tried it without and neither one
seems to work for me.

Can someone please tell me what I am doing wrong?

Or if there is an easier way to perform the task I am trying to accomplish
using another means besides a Macro and command button.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM
Macro Formula revision? Mark Excel Worksheet Functions 1 November 28th 04 01:43 AM
Macro for multiple charts JS Excel Worksheet Functions 1 November 19th 04 03:44 AM


All times are GMT +1. The time now is 08:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"