Click here to Skip to main content
15,906,333 members
Home / Discussions / C#
   

C#

 
AnswerRe: what do i have to do next Pin
j4ck1we2-Jul-09 7:32
j4ck1we2-Jul-09 7:32 
QuestionIOException and Number formatting Pin
Megidolaon2-Jul-09 1:55
Megidolaon2-Jul-09 1:55 
AnswerRe: IOException and Number formatting Pin
Luc Pattyn2-Jul-09 2:02
sitebuilderLuc Pattyn2-Jul-09 2:02 
AnswerRe: IOException and Number formatting Pin
stancrm2-Jul-09 2:06
stancrm2-Jul-09 2:06 
GeneralRe: IOException and Number formatting Pin
musefan2-Jul-09 2:21
musefan2-Jul-09 2:21 
AnswerRe: IOException and Number formatting Pin
musefan2-Jul-09 2:11
musefan2-Jul-09 2:11 
AnswerRe: IOException and Number formatting Pin
Henry Minute2-Jul-09 2:13
Henry Minute2-Jul-09 2:13 
GeneralRe: IOException and Number formatting Pin
musefan2-Jul-09 2:17
musefan2-Jul-09 2:17 
GeneralRe: IOException and Number formatting Pin
Henry Minute2-Jul-09 2:20
Henry Minute2-Jul-09 2:20 
GeneralRe: IOException and Number formatting Pin
musefan2-Jul-09 2:23
musefan2-Jul-09 2:23 
AnswerRe: IOException and Number formatting Pin
Megidolaon2-Jul-09 11:27
Megidolaon2-Jul-09 11:27 
QuestionMifare RFID reader with GNET Plus protocol Pin
GerritdL2-Jul-09 1:43
GerritdL2-Jul-09 1:43 
AnswerRe: Mifare RFID reader with GNET Plus protocol Pin
Henry Minute2-Jul-09 2:17
Henry Minute2-Jul-09 2:17 
AnswerRe: Mifare RFID reader with GNET Plus protocol Pin
GerritdL6-Jul-09 20:17
GerritdL6-Jul-09 20:17 
GeneralRe: Mifare RFID reader with GNET Plus protocol Pin
Muhammad Yousuf Maher16-Jul-14 3:04
Muhammad Yousuf Maher16-Jul-14 3:04 
Questionexception trying to insert a range to an Excelsheet Pin
Harry6662-Jul-09 1:23
Harry6662-Jul-09 1:23 
AnswerRe: exception trying to insert a range to an Excelsheet Pin
padmanabhan N2-Jul-09 1:44
padmanabhan N2-Jul-09 1:44 
GeneralRe: exception trying to insert a range to an Excelsheet Pin
Harry6662-Jul-09 5:04
Harry6662-Jul-09 5:04 
AnswerRe: exception trying to insert a range to an Excelsheet Pin
MumbleB2-Jul-09 1:47
MumbleB2-Jul-09 1:47 
AnswerRe: exception trying to insert a range to an Excelsheet Pin
MumbleB2-Jul-09 1:57
MumbleB2-Jul-09 1:57 
GeneralRe: exception trying to insert a range to an Excelsheet Pin
Harry6662-Jul-09 3:33
Harry6662-Jul-09 3:33 
GeneralRe: exception trying to insert a range to an Excelsheet Pin
Harry6662-Jul-09 4:00
Harry6662-Jul-09 4:00 
Partial success...

I've got several worksheets in my workbook. In some of them I have to do this: mark, copy and insert a special range of the sheet into the same sheet.

I tried to...

Excel.Worksheet sheetKL = (Excel.Worksheet)myWorkbook.Sheets["KL"];
Excel.Range range = ((Excel.Range)sheetKL.Cells[10, 1]).EntireRow;
range.Select();

and the Select-method throws an Exception

after this I tried to...

Excel.Worksheet sheetKL = (Excel.Worksheet)myWorkbook.Sheets["KL"];
sheetKL.Select(true);                                                                    //select the sheet
Excel.Range range = ((Excel.Range)sheetKL.Cells[10, 1]).EntireRow; //create the range
range.Select();                                    //select the range
range.Insert(Excel.XlInsertShiftDirection.xlShiftDown, range);

but then, still, the Insert-method throws the Exception.


WTF | :WTF:
Harry

no plan,
no signature

GeneralRe: exception trying to insert a range to an Excelsheet Pin
MumbleB2-Jul-09 9:22
MumbleB2-Jul-09 9:22 
GeneralRe: exception trying to insert a range to an Excelsheet Pin
Harry6662-Jul-09 13:58
Harry6662-Jul-09 13:58 
GeneralRe: exception trying to insert a range to an Excelsheet Pin
MumbleB2-Jul-09 22:14
MumbleB2-Jul-09 22:14 

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.