Macro - Add row, auto fill text and formulas with relative OFFSS
Closed
DaliaPerlai
Posts
4
Registration date
Tuesday 6 November 2012
Status
Member
Last seen
6 November 2012
-
6 Nov 2012 à 08:11
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 8 Nov 2012 à 10:44
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 8 Nov 2012 à 10:44
Related:
- Excel macro autofill
- Autofill safari - Guide
- Chrome clear autofill - Guide
- Excel online macros - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Vat calculation excel - Guide
4 responses
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
6 Nov 2012 à 10:01
6 Nov 2012 à 10:01
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 6 November 2012
Status
Member
Last seen
6 November 2012
6 Nov 2012 à 08:47
6 Nov 2012 à 08:47
Anyone can help for lady?
DaliaPerlai
Posts
4
Registration date
Tuesday 6 November 2012
Status
Member
Last seen
6 November 2012
6 Nov 2012 à 12:58
6 Nov 2012 à 12:58
Thank you very much, it was very useful for me.
DaliaPerlai
Posts
4
Registration date
Tuesday 6 November 2012
Status
Member
Last seen
6 November 2012
6 Nov 2012 à 13:02
6 Nov 2012 à 13:02
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 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
8 Nov 2012 à 09:21
8 Nov 2012 à 09:21
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 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
8 Nov 2012 à 10:44
8 Nov 2012 à 10:44
That is exactly what "Range("A1").Value = Date" does.
Why is it not suitable for you?
Why is it not suitable for you?