Dynamic Range in excel using vb6
Solved/Closed
Related:
- Dynamic Range in excel using vb6
- Excel mod apk for pc - Download - Spreadsheets
- Samsung dynamic picture mode - Guide
- Vb6 round function - Guide
- Number to words in excel - Guide
- Gif in excel - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
24 Jun 2010 à 19:06
24 Jun 2010 à 19:06
Not clear what you were trying to do here
.Cells(rs.RecordCount + 5, iCol + 1).Value= "=Sum("Colsum" & iCol)"
since code is not complete it is hard to tell, as forexample what is colsum etc
i would guess you would need to change some thing close to
.Cells(rs.RecordCount + 5, iCol + 1).formula= "=Sum(" & Colsum & iCol & ")"
.Cells(rs.RecordCount + 5, iCol + 1).Value= "=Sum("Colsum" & iCol)"
since code is not complete it is hard to tell, as forexample what is colsum etc
i would guess you would need to change some thing close to
.Cells(rs.RecordCount + 5, iCol + 1).formula= "=Sum(" & Colsum & iCol & ")"
26 Jun 2010 à 03:15
Thak you for your response.
Eventhough u r not clear, i got the answer to my problem. i used the following
.Cells(rs.RecordCount + 5, iCol + 1).value= "=Sum(" & Colsum & iCol & ")"
now it is working perfect.
For your information Colsum is the name of the dynamic range, iCol is the column no. , and rs is the recordset.
Thanks again.
9 Feb 2015 à 09:07