Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Macro moving with daily date
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
paintbrush  
View profile  
 More options Nov 5, 10:22 pm
Newsgroups: microsoft.public.excel.newusers
From: paintbrush <Eastern Ks.com>
Date: Thu, 5 Nov 2009 06:22:02 -0800
Local: Thurs, Nov 5 2009 10:22 pm
Subject: Macro moving with daily date
Macro needs to move with date down a row each day including other cell
referances when I run the macro.
--
paintbrush
                     Here is day 3 macro below, or do I need to make 31
Macros?
 Range("G3").Select                                                    
    ActiveCell.FormulaR1C1 = "=TODAY()"                                                      
    Range("J3").Select                                                        
    ActiveCell.FormulaR1C1 = "=RC[-1]*7"                                                      
    Range("K3").Select                                                        
    ActiveCell.FormulaR1C1 = "=R[7]C[-5]"                                                    
    Range("K3").Select                                                        
    Selection.Copy                                                      
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _                                                    
        :=False, Transpose:=False                                                      
    Application.CutCopyMode = False                                                    
    Range("E2:E9").Select                                                    
    Selection.ClearContents                                                    

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luke M  
View profile  
 More options Nov 5, 11:19 pm
Newsgroups: microsoft.public.excel.newusers
From: Luke M <Lu...@discussions.microsoft.com>
Date: Thu, 5 Nov 2009 07:19:01 -0800
Local: Thurs, Nov 5 2009 11:19 pm
Subject: RE: Macro moving with daily date
'Assuming row corresponds to date:

Sub MyMacro()
Dim x As Integer

'Determine what day it is
 x = Format(Date, "d")

 Cells(x, "G").Formula = "=TODAY()"
 Cells(x, "J").FormulaR1C1 = "=RC[-1]*7"
 Cells(x, "K").FormulaR1C1 = "=R[7]C[-5]"
 Cells(x, "K") = Cells(x, "K").Value
 Range("E2:E9").ClearContents

End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
paintbrush  
View profile  
 More options Nov 7, 9:53 am
Newsgroups: microsoft.public.excel.newusers
From: paintbrush <Eastern Ks.com>
Date: Fri, 6 Nov 2009 17:53:01 -0800
Local: Sat, Nov 7 2009 9:53 am
Subject: RE: Macro moving with daily date
Luke, I paintbrush is having trouble with the information you gave me.  It
worked 5 times with "00" for the next to last step, last cleared well, but I
worked on the formulas for trying to get it corrected without good results.  
I use copy and past to get the fromula into the macro and it appeared to work
almost.  I have tried several times to recopy with good results.  If there is
a way to solve my problem I will make it worth your time-somehow.    
paintbrush
--
paintbrush


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google