Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I have a procedure in Access that exports data to an Excel worksheet. Can anyone here help me with the finer side of Excel VBA and it methods, please? I have the following code so far: Public gobjExcel As Excel.Application 'global variable ------------------------------------------------------- Private Sub cmdExportieren_Click() 'actual procedure Dim objWS As Excel.Worksheet gobjExcel.Workbooks.Add objWS.Range("A2").CopyFromRecordset rstData, 1000 'export gobjExcel.Range("A1").Select 'code I want must go here end sub --------------------------------------------- So what I want in VBA is that I check the cell contents in a specific range, and when the cell contents has a number in it, it must be a decimal value with only 1 place after the comma. Can this be written with an IF loop inside the VBA of Access? I am grateful for any tips, or if someone can maybe point to a resource on the web where this is explained. Kind Regards, Jean |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel automation through .NET Interop: NumberFormat property looks like NumberFormatLocal | Excel Programming | |||
numberformat? | Excel Discussion (Misc queries) | |||
using cells.numberformat | Excel Worksheet Functions | |||
Writing Localized Strings In Cells Using Automation | Excel Discussion (Misc queries) | |||
NumberFormat strings for Excel Cells | Excel Programming |