First empty row (Visual MFC)

F

fiufiu

Hello,
I have macro in vba and i need it in Visual C++
Does anyone know how to do it?
I would be very grateful for any help

firstEmptyRow =
ActiveSheet.UsedRange.Cells(ActiveSheet.UsedRange.Cells.Count).Offset(1,
0).Row
Set firstEmptyCell = Range("A" & firstEmptyRow)
firstEmptyCell.Select

I need finally something like that:

Range ExcelRange;
_Worksheet ExcelSheet;

ExcelRange = ExcelSheet.GetRange(firstemptyrow/*COleVariant("Axx")*/,vOpt);
,where xx is number of first empty row

Thanks for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top