Click here to Skip to main content
15,891,993 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sorting Excel range of cells by column in VB [modified] Pin
Johan Hakkesteegt12-Nov-09 0:26
Johan Hakkesteegt12-Nov-09 0:26 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6912-Nov-09 1:05
nhsal6912-Nov-09 1:05 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 2:03
Johan Hakkesteegt12-Nov-09 2:03 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 3:16
Johan Hakkesteegt12-Nov-09 3:16 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Oakman12-Nov-09 16:03
Oakman12-Nov-09 16:03 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 20:18
Johan Hakkesteegt12-Nov-09 20:18 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6913-Nov-09 0:08
nhsal6913-Nov-09 0:08 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt13-Nov-09 3:14
Johan Hakkesteegt13-Nov-09 3:14 
To be perfectly honest, creating excel sheets using interop is an absolute development nightmare. For one, if the user does not have excel installed, your application will not work. The error you described is one of many similar ones I have seen when I tried to do it with interop (that's what is throwing the error). The problem is, the syntax changes with each different version of excel, so even if you finally get it to work, you can start over as soon as MickeySoft decides to market a new Office version.

Personally, I have decided to cut my losses, and I have rebuilt the whole thing using xml. That means I basically build up an xml file in a string and in the end I save the string to an excel file. I can now create excel files containing autofilters, all kinds of formatting, frozen panes, and more, and the resulting file can be opened in any excel version from 97 to 2007.

In other words, I warmly recommend using my approach, and saving yourself a big headache.

My advice is free, and you may get what you paid for.

QuestionChange Process Name Pin
Anubhava Dimri11-Nov-09 18:49
Anubhava Dimri11-Nov-09 18:49 
AnswerRe: Change Process Name Pin
The Man from U.N.C.L.E.11-Nov-09 22:40
The Man from U.N.C.L.E.11-Nov-09 22:40 
QuestionVB.NET Audio Help Pin
smccloud11-Nov-09 16:34
smccloud11-Nov-09 16:34 
AnswerRe: VB.NET Audio Help Pin
Eduard Keilholz11-Nov-09 23:35
Eduard Keilholz11-Nov-09 23:35 
GeneralRe: VB.NET Audio Help Pin
smccloud12-Nov-09 2:56
smccloud12-Nov-09 2:56 
GeneralRe: VB.NET Audio Help Pin
Eduard Keilholz12-Nov-09 4:56
Eduard Keilholz12-Nov-09 4:56 
QuestionFile read and write as a stream Pin
Praveen Thankappan11-Nov-09 8:13
Praveen Thankappan11-Nov-09 8:13 
AnswerRe: File read and write as a stream Pin
EliottA11-Nov-09 8:42
EliottA11-Nov-09 8:42 
AnswerRe: File read and write as a stream Pin
Christian Graus11-Nov-09 9:44
protectorChristian Graus11-Nov-09 9:44 
GeneralRe: File read and write as a stream Pin
Smithers-Jones12-Nov-09 2:46
Smithers-Jones12-Nov-09 2:46 
GeneralRe: File read and write as a stream Pin
Praveen Thankappan12-Nov-09 7:02
Praveen Thankappan12-Nov-09 7:02 
QuestionAccess level and user right Pin
waner michaud11-Nov-09 7:20
waner michaud11-Nov-09 7:20 
AnswerRe: Access level and user right Pin
Dave Kreskowiak11-Nov-09 7:32
mveDave Kreskowiak11-Nov-09 7:32 
GeneralRe: Access level and user right Pin
waner michaud11-Nov-09 8:26
waner michaud11-Nov-09 8:26 
GeneralRe: Access level and user right Pin
_Damian S_11-Nov-09 13:29
professional_Damian S_11-Nov-09 13:29 
QuestionConvert Column from Float to Double Datatype. Pin
jeshra27911-Nov-09 5:36
jeshra27911-Nov-09 5:36 
AnswerRe: Convert Column from Float to Double Datatype. Pin
John M Bundy11-Nov-09 5:57
John M Bundy11-Nov-09 5:57 

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.