Macro and formula
Closed
hephzibah
-
Jul 26, 2010 at 06:47 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jul 26, 2010 at 07:57 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jul 26, 2010 at 07:57 AM
Related:
- Macro and formula
- Logitech formula vibration feedback wheel driver - Download - Drivers
- Excel grade formula - Guide
- Number to words in excel formula - Guide
- Credit summation formula - Guide
- Date formula in excel dd/mm/yyyy - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Jul 26, 2010 at 07:57 AM
Jul 26, 2010 at 07:57 AM
I am not too sure what you are trying to do and even why. Any how it seem thats you what you need to know is what row you are on before you run the macro
So first locate the row on which you are.
Selection.Row should give you the first row select
Selection.Rows.Count will give you the number of rows that you have select
in you formula you can have some thing like
Cells(myRow, "G").formula ="=Sum(D" & myRow & " + F" & myRow & " - " & myRow & ")"
Myrow is the row that was selected and you have already found out
So first locate the row on which you are.
Selection.Row should give you the first row select
Selection.Rows.Count will give you the number of rows that you have select
in you formula you can have some thing like
Cells(myRow, "G").formula ="=Sum(D" & myRow & " + F" & myRow & " - " & myRow & ")"
Myrow is the row that was selected and you have already found out