Macro - Add row, auto fill text and formulas with relative OFFSS
Closed
DaliaPerlai
Posts
4
Registration date
Tuesday November 6, 2012
Status
Member
Last seen
November 6, 2012
-
Nov 6, 2012 at 08:11 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Nov 8, 2012 at 10:44 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Nov 8, 2012 at 10:44 AM
Related:
- Macro - Add row, auto fill text and formulas with relative OFFSS
- Grand theft auto v free download no verification for pc - Download - Action and adventure
- Pdf and xps add in 2007 - Download - Other
- Grand theft auto iv download apk for pc - Download - Action and adventure
- Facebook auto refresh - Guide
- Saints row 2 cheats - Guide
4 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Nov 6, 2012 at 10:01 AM
Nov 6, 2012 at 10:01 AM
Dear Lady,
Select a cell in the newly added row and run the following code:
Best regards,
Trowa
Select a cell in the newly added row and run the following code:
Sub AddFormula() Dim x As Integer x = ActiveCell.Row Range("B" & x).Value = x - 4 ActiveSheet.Hyperlinks.Add Range("B" & x), "", "Sheet" & x - 4 & "!A1" Range("C" & x).Formula = "=Sheet" & x - 4 & "!$A$1" Range("I" & x).Formula = "=OFFSET(Sheet" & x - 4 & "!$A$1,17,1,1)" End Sub
Best regards,
Trowa
DaliaPerlai
Posts
4
Registration date
Tuesday November 6, 2012
Status
Member
Last seen
November 6, 2012
Nov 6, 2012 at 08:47 AM
Nov 6, 2012 at 08:47 AM
Anyone can help for lady?
DaliaPerlai
Posts
4
Registration date
Tuesday November 6, 2012
Status
Member
Last seen
November 6, 2012
Nov 6, 2012 at 12:58 PM
Nov 6, 2012 at 12:58 PM
Thank you very much, it was very useful for me.
DaliaPerlai
Posts
4
Registration date
Tuesday November 6, 2012
Status
Member
Last seen
November 6, 2012
Nov 6, 2012 at 01:02 PM
Nov 6, 2012 at 01:02 PM
But I have one more problem.
I have button, which instert date in the cell A1
I need, that in the cell a1 will be date of the time, when I pushed the button.
Now I use function =TODAY(), but this function is not suitable for me. He show actualy date every day, but not the date of the time, when I pushed the button...
I have button, which instert date in the cell A1
I need, that in the cell a1 will be date of the time, when I pushed the button.
Now I use function =TODAY(), but this function is not suitable for me. He show actualy date every day, but not the date of the time, when I pushed the button...
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Nov 8, 2012 at 09:21 AM
Nov 8, 2012 at 09:21 AM
Hi DaliaPerlai,
Not clear to me what you mean by "Date of the time".
Do you want to display time only or date only or both?
Or do you mean that you want to keep the date and don't want it to change once it is entered?
In case of the last use this:
Trowa
Not clear to me what you mean by "Date of the time".
Do you want to display time only or date only or both?
Or do you mean that you want to keep the date and don't want it to change once it is entered?
In case of the last use this:
Range("A1").Value = DateBest regards,
Trowa
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Nov 8, 2012 at 10:44 AM
Nov 8, 2012 at 10:44 AM
That is exactly what "Range("A1").Value = Date" does.
Why is it not suitable for you?
Why is it not suitable for you?