Excel: Auto fill cells in various locations
Closed
Martin
-
8 Jun 2010 à 06:04
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 8 Jun 2010 à 07:54
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 8 Jun 2010 à 07:54
Related:
- Excel: Auto fill cells in various locations
- Excel mod apk for pc - Download - Spreadsheets
- Vat calculation excel - Guide
- Kernel for excel repair - Download - Backup and recovery
- Arrow keys not working in excel - Guide
- Excel clear formatting - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
8 Jun 2010 à 06:37
8 Jun 2010 à 06:37
Could you please upload a sample file with sample data etc on some shared site like https://authentification.site , http://docs.google.com, http://wikisend.com/ , http://www.editgrid.com etc and post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too
8 Jun 2010 à 06:58
So what I want is that by filling in the transactions sheet then the holdings sheet will fill in automatically too.
The price today and x-rate today and so on is not important as I will get that from external sources but if you could help me with the frame work on how to split the list up into different categories in the holdings sheet.
Thank you very much!
8 Jun 2010 à 07:24
"
8 Jun 2010 à 07:34
But my question is more related to the process of how I can make Excel do the transfer of the data from the list of transactions into the various parts of the holdings sections automatically?
As you can see right now then its all typed in by hand manually and what I want is to automate it as this is the specific case for just one portfolio...I have hundreds of portfolios so if I could set up a general template then I could apply that one to the others ones as well
https://authentification.site/files/22854226/Sample.xls
8 Jun 2010 à 07:54
Then you would need to look up the TYPE on datasource and locate the row from where the label for that category exisits
once you have seen that, then you need to decide if you want to insert on top or to add to the bottom of the group. In either case now you have to locate the row where the insertion would occur
Now if you want to do on automate basis, then you need to use Sheet event called Worksheet_Change on Sheet Transaction, If you go to VBE and double click on transaction sheet, you would see the event ( you have to use dropdown to locate it)
Private Sub Worksheet_Change(ByVal Target As Range)
End Sub
Target is the cell that has changed. This would be your cell that you have designated as flag that row is ready to be copied
Also while the code is running, you should disable event else you would get into cyclic loop
some thing like this
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
..... you code here
Application.EnableEvents = TRUE
End Sub
,