Click here to Skip to main content
15,888,968 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Microsoft Outlook 9.0 Object Library Pin
Dave Kreskowiak13-May-04 6:57
mveDave Kreskowiak13-May-04 6:57 
GeneralRe: Microsoft Outlook 9.0 Object Library Pin
xfitr214-May-04 7:42
xfitr214-May-04 7:42 
GeneralRe: Microsoft Outlook 9.0 Object Library Pin
Brent Lamborn14-May-04 15:19
Brent Lamborn14-May-04 15:19 
GeneralVB.NET Excell Cell Formatting Pin
CSHighCommand13-May-04 5:08
CSHighCommand13-May-04 5:08 
GeneralRe: VB.NET Excell Cell Formatting Pin
Dave Kreskowiak13-May-04 6:54
mveDave Kreskowiak13-May-04 6:54 
GeneralRe: VB.NET Excell Cell Formatting Pin
John Kuhn13-May-04 14:53
John Kuhn13-May-04 14:53 
GeneralRe: VB.NET Excell Cell Formatting Pin
Dave Kreskowiak14-May-04 0:03
mveDave Kreskowiak14-May-04 0:03 
GeneralRe: VB.NET Excell Cell Formatting Pin
mattfc14-May-04 9:09
mattfc14-May-04 9:09 
The cells in Excel are by default set to General and Excel formats them based on what it thinks you have entered in the cell, in this case any number padded with leading zeroes will be reduced. You can change the format of the cell in code with:

MyExcel.MyWorksheet.Cells(1,1).Numberformat="@"

However, when I've done this it caused a strange display problem when the text was very long. Another way to force it to display as you type is to put an apostrophe "'" before the text. The apostrophe won't appear in the cell's display but will in the fx bar across the top.

There is an AutoSize column width method but the syntax escapes me for the moment. Whenever doing anything with Word or Excel, record a macro of you doing it manually. This can be found in Excel in Tools->Macro->Record Macro. It will show you the syntax of any command you have performed.

Hope this helps.
GeneralFind in Word Pin
RichardGrimmer13-May-04 2:54
RichardGrimmer13-May-04 2:54 
GeneralRe: Find in Word Pin
RichardGrimmer13-May-04 2:58
RichardGrimmer13-May-04 2:58 
GeneralDataCombo/List in VB6 Pin
Larry Gatlin13-May-04 2:33
professionalLarry Gatlin13-May-04 2:33 
GeneralRe: DataCombo/List in VB6 Pin
Dave Kreskowiak13-May-04 6:53
mveDave Kreskowiak13-May-04 6:53 
GeneralRe: DataCombo/List in VB6 Pin
Larry Gatlin13-May-04 13:36
professionalLarry Gatlin13-May-04 13:36 
GeneralOffice Addin IDTExtensibility2 Event Pin
shinay12-May-04 20:02
shinay12-May-04 20:02 
GeneralRe: Office Addin IDTExtensibility2 Event Pin
Anonymous12-May-04 23:19
Anonymous12-May-04 23:19 
QuestionHow can I ignore invalide path characters being entered into a text box Pin
Kettlewell12-May-04 13:17
Kettlewell12-May-04 13:17 
QuestionHow can I get the event when user using DELETE key to delete a ROW of a datagid table? Pin
ATC12-May-04 11:05
ATC12-May-04 11:05 
AnswerRe: How can I get the event when user using DELETE key to delete a ROW of a datagid table? Pin
shinay12-May-04 19:57
shinay12-May-04 19:57 
GeneralRe: How can I get the event when user using DELETE key to delete a ROW of a datagid table? Pin
ATC31-May-04 8:28
ATC31-May-04 8:28 
GeneralCould not find installable ISAM Pin
Member 33182312-May-04 8:53
Member 33182312-May-04 8:53 
QuestionWhen are events fired? Pin
PaleyX12-May-04 7:57
PaleyX12-May-04 7:57 
AnswerRe: When are events fired? Pin
Dave Kreskowiak13-May-04 7:24
mveDave Kreskowiak13-May-04 7:24 
GeneralRe: When are events fired? Pin
PaleyX18-May-04 16:49
PaleyX18-May-04 16:49 
GeneralRe: When are events fired? Pin
Dave Kreskowiak19-May-04 2:44
mveDave Kreskowiak19-May-04 2:44 
Generalbackground image taking over toolbar Pin
Phaldo12-May-04 5:07
Phaldo12-May-04 5:07 

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.