Click here to Skip to main content
15,893,663 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Random Numbers Pin
_Damian S_18-May-09 17:13
professional_Damian S_18-May-09 17:13 
AnswerRe: Random Numbers Pin
TheMrProgrammer19-May-09 3:02
TheMrProgrammer19-May-09 3:02 
QuestionDesign Logic for Simple Application Pin
Nielvh18-May-09 12:42
Nielvh18-May-09 12:42 
AnswerRe: Design Logic for Simple Application Pin
_Damian S_18-May-09 14:10
professional_Damian S_18-May-09 14:10 
GeneralRe: Design Logic for Simple Application Pin
Nielvh18-May-09 20:14
Nielvh18-May-09 20:14 
GeneralRe: Design Logic for Simple Application Pin
_Damian S_18-May-09 20:45
professional_Damian S_18-May-09 20:45 
AnswerRe: Design Logic for Simple Application Pin
Mycroft Holmes18-May-09 16:23
professionalMycroft Holmes18-May-09 16:23 
Questionproblem of save in excel Pin
nazimghori18-May-09 5:52
nazimghori18-May-09 5:52 
hello

i am developing an application where i generate my report in excel

and have to save in some folder in c drive i wrote my code like

 Dim xl As New Excel.Application
xl = CreateObject("Excel.Application")
        Workbooks.Add()
        xl.Visible = True

        xl.Columns("A").columnwidth = 5
        xl.Columns("C").columnwidth = 25
        xl.Columns("B").columnwidth = 25

 With xl.Range("A" & ii, "C" & ii)            
            .Interior.ColorIndex = 5                       
        End With


'please suggest also how to change forecolor of cell from "A" to "C"'

i get my data from data base and load it in excel and it is working but now i want to save this file in some folder for that i wrote code like

If Not IO.Directory.Exists("C:\Backup") Then
            IO.Directory.CreateDirectory("C:\Backup")
        End If
        xl.SaveWorkspace(" C:\Backup ")

but this code is not working

so,please suggest what shall i do to save it in this directory...

Smile | :) Smile | :)
AnswerRe: problem of save in excel Pin
Ray Cassick18-May-09 8:39
Ray Cassick18-May-09 8:39 
AnswerRe: problem of save in excel Pin
Ray Cassick18-May-09 8:42
Ray Cassick18-May-09 8:42 
AnswerRe: problem of save in excel Pin
Dave Kreskowiak18-May-09 8:46
mveDave Kreskowiak18-May-09 8:46 
QuestionRegistering an exe as a service. Pin
draghu18-May-09 4:21
draghu18-May-09 4:21 
AnswerRe: Registering an exe as a service. Pin
Dave Kreskowiak18-May-09 6:55
mveDave Kreskowiak18-May-09 6:55 
GeneralRe: Registering an exe as a service. Pin
Jon_Boy18-May-09 8:13
Jon_Boy18-May-09 8:13 
GeneralRe: Registering an exe as a service. [modified] Pin
draghu20-May-09 20:01
draghu20-May-09 20:01 
GeneralRe: Registering an exe as a service. Pin
Dave Kreskowiak27-May-09 1:36
mveDave Kreskowiak27-May-09 1:36 
GeneralRe: Registering an exe as a service. Pin
draghu27-May-09 2:41
draghu27-May-09 2:41 
GeneralRe: Registering an exe as a service. Pin
draghu26-May-09 23:36
draghu26-May-09 23:36 
GeneralRe: Registering an exe as a service. Pin
Dave Kreskowiak27-May-09 1:33
mveDave Kreskowiak27-May-09 1:33 
GeneralRe: Registering an exe as a service. Pin
draghu27-May-09 2:43
draghu27-May-09 2:43 
GeneralRe: Registering an exe as a service. Pin
Dave Kreskowiak27-May-09 11:58
mveDave Kreskowiak27-May-09 11:58 
QuestionServer Connectivity if no server exist Pin
pdnet18-May-09 3:57
pdnet18-May-09 3:57 
AnswerRe: Server Connectivity if no server exist Pin
Dave Kreskowiak18-May-09 8:54
mveDave Kreskowiak18-May-09 8:54 
AnswerRe: Server Connectivity if no server exist Pin
Samir Ibrahim19-May-09 4:35
Samir Ibrahim19-May-09 4:35 
QuestionExcel column formatting issue, format style changed when formatted again with the same style Pin
BREdwards18-May-09 3:36
BREdwards18-May-09 3:36 

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.