![]() ![]() Please remember to mark the replies as answers if they help and unmark them if they provide no help. MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Range.get_Characters(1, 3).Font.Bold = true ![]() Range range = worksheet1.get_Range( "A1") Worksheet worksheet1 = _Item( "Sheet1") Įxcel. ![]() Workbook workbook = app.ActiveWorkbook Įxcel. Then you can code this action via VS like below:Įxcel. With ActiveCell.Characters(Start:=1, Length:=4).Font For instance of changing font, you will see something like below: You can record a macro to see how the action performs in VBA. You don’t need do this manually:ĮxcelInterop = However I note something weird in your code.īy default, when you create a new workbook project, the code: ExcelInterop = ĮxcelInterop.Application oExcelApp = (ExcelInterop.Application).GetActiveObject( "Excel.Application" ) Īctions which you can do in UI are all able to implement via code (either C# or VBA) in VSTO. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2023
Categories |