Watersource
New Member
- Joined
- Jan 3, 2009
- Messages
- 17
- Office Version
- 365
- 2016
- Platform
- Windows
Hello fellow excel/vba users,
I have a sheet (basically a csv sheet that has been opened in tab Data, and converted to columns) that contains a variable number of rows in a fixed format.
This sheet contains a header and a number of entries. Per entry, the value of column 1 needs to be upgraded.
I want to convert the beneath steps in a macro, so the user only has to press a button and the sheet is filled automatically.
I have tried to copy all rows of the same entry in one go but did not succeed on this. Is my conclusion correct that I need to go through all lines one by one?
What would be the mechanism to determine the number of rows and how can I create a for ... next loop to through all the lines?
One last question, in the source tab I have separate columns for debet and credit amounts, how can I translate this to one column where debet is a positive amount and credit is a negative amount?
Thank you for your help on this.
I have a sheet (basically a csv sheet that has been opened in tab Data, and converted to columns) that contains a variable number of rows in a fixed format.
This sheet contains a header and a number of entries. Per entry, the value of column 1 needs to be upgraded.
I want to convert the beneath steps in a macro, so the user only has to press a button and the sheet is filled automatically.
I have tried to copy all rows of the same entry in one go but did not succeed on this. Is my conclusion correct that I need to go through all lines one by one?
What would be the mechanism to determine the number of rows and how can I create a for ... next loop to through all the lines?
One last question, in the source tab I have separate columns for debet and credit amounts, how can I translate this to one column where debet is a positive amount and credit is a negative amount?
Thank you for your help on this.