Click here to Skip to main content
15,902,198 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Notify Icon Question Pin
gpa200028-Jan-04 20:45
gpa200028-Jan-04 20:45 
GeneralKilling a process in VB Pin
blaze197828-Jan-04 12:09
blaze197828-Jan-04 12:09 
GeneralRe: Killing a process in VB Pin
Dave Kreskowiak28-Jan-04 17:20
mveDave Kreskowiak28-Jan-04 17:20 
GeneralRe: Killing a process in VB Pin
Anonymous28-Jan-04 19:58
Anonymous28-Jan-04 19:58 
QuestionQuery as input for my array? Pin
Anonymous28-Jan-04 10:55
Anonymous28-Jan-04 10:55 
AnswerRe: Query as input for my array? Pin
DannyB793-Feb-04 6:25
DannyB793-Feb-04 6:25 
GeneralExcel, VB and Column formatting Pin
RichardGrimmer28-Jan-04 5:37
RichardGrimmer28-Jan-04 5:37 
GeneralRe: Excel, VB and Column formatting Pin
jimpar28-Jan-04 8:53
jimpar28-Jan-04 8:53 
Here is how I format columns in excel using a CExcel class module:

Set objExcel = New CExcel
With objExcel
.OpenExcelFile strFilename, "Visit List"
.StoreExcelRange "A1", lngRecsProcessed + 3, 13, varDataArray
.FreezePanes "A3", True
.SetExcelRowBold 1
.SetExcelCellWidthAutoFit
.FormatColumn "A", "000000000"
.FormatColumn "E", "$#,##0.00"
.CloseExcelFile
End With
Set objExcel = Nothing


Here is the actual code in the FormatColumn

m_objWorksheet.Columns(p_strColumn).NumberFormat = p_strFormat



To see exactly what code excel uis doing you could record a macro in Excel as you format the column. The code you need will be in side the macro code and is easily migratable to VB
GeneralRe: Excel, VB and Column formatting Pin
RichardGrimmer29-Jan-04 22:47
RichardGrimmer29-Jan-04 22:47 
GeneralDeployment Pin
Anonymous28-Jan-04 4:03
Anonymous28-Jan-04 4:03 
GeneralStupid question about Automation Pin
Bash28-Jan-04 0:12
Bash28-Jan-04 0:12 
GeneralRe: Stupid question about Automation Pin
Daniel Turini28-Jan-04 1:09
Daniel Turini28-Jan-04 1:09 
GeneralRe: Stupid question about Automation Pin
Vi229-Jan-04 2:32
Vi229-Jan-04 2:32 
GeneralRe: Stupid question about Automation Pin
Anonymous2-Feb-04 4:58
Anonymous2-Feb-04 4:58 
GeneralRe: Stupid question about Automation Pin
Anonymous28-Jan-04 8:57
Anonymous28-Jan-04 8:57 
Generalwhere to find the dialup info Pin
h43k4z27-Jan-04 19:40
h43k4z27-Jan-04 19:40 
GeneralEntering Feet/Inches in Textbox Pin
Dooglo27-Jan-04 17:09
Dooglo27-Jan-04 17:09 
Generalhandle open documents Pin
acecase27-Jan-04 16:07
acecase27-Jan-04 16:07 
GeneralRe: handle open documents Pin
Dave Kreskowiak28-Jan-04 3:55
mveDave Kreskowiak28-Jan-04 3:55 
GeneralRe: handle open documents Pin
acecase31-Jan-04 15:47
acecase31-Jan-04 15:47 
Generaldata extraction problem. Pin
LokmanHakim27-Jan-04 15:31
LokmanHakim27-Jan-04 15:31 
GeneralRe: data extraction problem. Pin
gpa200028-Jan-04 6:38
gpa200028-Jan-04 6:38 
GeneralRe: data extraction problem. Pin
LokmanHakim28-Jan-04 12:57
LokmanHakim28-Jan-04 12:57 
GeneralDocumenting .NET classes Pin
Barry Etter27-Jan-04 13:52
Barry Etter27-Jan-04 13:52 
GeneralRe: Documenting .NET classes Pin
Mike Ellison27-Jan-04 14:31
Mike Ellison27-Jan-04 14:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.