Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all:
I have two cells: A B 1 Cell1, Cell2 --------------------------- In excel , i manually set "Cell Styles" to them with "Check Cell", "Heading 1" ... etc. Question: I want to code (c#) Cell1 ,Cell2 with such Style, how could i do ? Sample code is welcomed , especially for c# code. Thanks in advanced. Ding Li |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use macro record - you will see the something like
Selection.Font.Superscript = True Simply use your Excel.Range Object (or OLE) to change the desired values. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't use macro record because I have to create a new blank excel sheet.
So , is there any c# solution ? "NOPIK" wrote: Use macro record - you will see the something like Selection.Font.Superscript = True Simply use your Excel.Range Object (or OLE) to change the desired values. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What do you mean by "I need to create a blank sheet"?
I meaned simple action: Open Excel record macro Cut&Paste Macro into your code, close Excel, correct objects for your namespace. Or you don't know how to perform Excel.Application.Workbooks.Open ? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I got your idea. Record what you have done in excel and take advantage of
these codes. Thanks, i will try. "NOPIK" wrote: What do you mean by "I need to create a blank sheet"? I meaned simple action: Open Excel record macro Cut&Paste Macro into your code, close Excel, correct objects for your namespace. Or you don't know how to perform Excel.Application.Workbooks.Open ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel.Style object: Border problems | Excel Programming | |||
Checking for the border style of a range | Excel Programming | |||
A1 style Range in programming | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming |