Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Date is not permanent

My fromula is off. The date changes each day plus the previous day-how to
make permanent-Column K in fromula. Line 2 is Ok. Line 3 & 4 yields 00's,
not a copy of F32. Will include Formula and work sheet to understand.

Sub BuildingSalvage()
'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("E1:E31").ClearContents

End Sub

Line 9 & 10, C. E is blank, table-day changes previous day C. G, & column K
is 00's should have be F 32 total copied to K.
2x6 12' $5.49 $2.75 $2.6 0 11/10/2009 6 42 $294.00 $0.00
2x6 14 $6.46 $3.23 $2.2 0 11/10/2009 3 21 $147.00 $0.00

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Date is not permanent

Sub MyMacro()
Dim x As Integer

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

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

End Sub

--
Gary''s Student - gsnu200908
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Date is not permanent

Gary"s Student
I am still having problem with line 4 in the formula. Your date was on the
mark.
Here is the formula as is now.

Sub BuildingSalvage()
'Assuming row Corresponds to date:

'Sub MyMacro()
'Dim x as Integer

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

Cells(x, "G").Formula = Date
Cells(x, "J").FormulaR1C1 = "=RC[-1]*7"
Cells(x, "K").FormulaR1C1 = "=R[7]C[-5]"
Cells(x, "F32") = Cells(x, "K").Value <This line copy f32 and place in K
column
Range("E1:E31").ClearContents How can this be done for 31 days?

--
paintbrush


"paintbrush" wrote:

My fromula is off. The date changes each day plus the previous day-how to
make permanent-Column K in fromula. Line 2 is Ok. Line 3 & 4 yields 00's,
not a copy of F32. Will include Formula and work sheet to understand.

Sub BuildingSalvage()
'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("E1:E31").ClearContents

End Sub

Line 9 & 10, C. E is blank, table-day changes previous day C. G, & column K
is 00's should have be F 32 total copied to K.
2x6 12' $5.49 $2.75 $2.6 0 11/10/2009 6 42 $294.00 $0.00
2x6 14 $6.46 $3.23 $2.2 0 11/10/2009 3 21 $147.00 $0.00

Reply
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
permanent conversion of 1904 date format to 1900 date format Jos Excel Worksheet Functions 4 November 26th 15 02:48 PM
permanent time and date stamp for Excel --- so it cant be changed TR clvgis Excel Discussion (Misc queries) 1 December 30th 06 01:23 AM
Date format in permanent list kayabob Excel Discussion (Misc queries) 1 October 14th 06 09:35 AM
Set Permanent Date Format to MM//DD/YYYY kayabob Excel Discussion (Misc queries) 1 July 7th 06 04:46 PM
Making a auto date entered into a cell permanent from a template Muncher Excel Discussion (Misc queries) 2 May 26th 05 11:07 PM


All times are GMT +1. The time now is 05:10 AM.

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"