Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Help with MACRO

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jddonadio - 29 Feb 2008 23:27 GMT
Good evening:

Is it possible to insert a formula in the below listed MACRO.  [Column D is
always a date. I need Column F to display a date 14 days greater]

Thanks in advance

John

Sub EnterGrievance()

'

' EnterGrievance Macro

' Macro recorded 2/25/2008 by John Donadio

'

' Keyboard Shortcut: Ctrl+c

'Range("A12").Select

   Dim FromRng As Range

   Dim ToRng As Range

   With Worksheets("Data Sheet")

       Set FromRng = .Range("A12:M12")

   End With

   With Worksheets("Grievance Log")

      Set ToRng = .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0)

   End With

   FromRng.Copy _

      Destination:=ToRng

       Sheets("Data Sheet").Select

   Range("E19").Select

End Sub
Barb Reinhardt - 01 Mar 2008 03:13 GMT
I'm not sure where you want it, but you'd want something like this

FromRange.offset(0,5).formulaR1C1 = FromRange.offset(0,3).value2 + 13

Signature

HTH,
Barb Reinhardt

> Good evening:
>
[quoted text clipped - 44 lines]
>
> End Sub

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.