 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jigme Wangchuk Guest
|
Posted: Tue Jan 20, 2004 9:45 am Post subject: How to set Default Excel Sheet |
|
|
Hi,
I'm using Excel_tlb to generate reports to MS Excel. I have an Excel file
with many sheets and would like to set default excel sheet.
I would be grateful if anybody could help me to how to set default excel
sheet.
Thanks and regards
jigme
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Tue Jan 20, 2004 10:24 am Post subject: Re: How to set Default Excel Sheet |
|
|
Just call Select method for Sheet
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message:
news:400cf7a5 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi,
I'm using Excel_tlb to generate reports to MS Excel. I have an Excel file
with many sheets and would like to set default excel sheet.
I would be grateful if anybody could help me to how to set default excel
sheet.
Thanks and regards
jigme
|
|
|
| Back to top |
|
 |
Jigme Wangchuk Guest
|
Posted: Wed Jan 21, 2004 4:03 am Post subject: Re: How to set Default Excel Sheet |
|
|
Thnx
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote
| Quote: | Just call Select method for Sheet
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message:
news:400cf7a5 (AT) newsgroups (DOT) borland.com...
Hi,
I'm using Excel_tlb to generate reports to MS Excel. I have an Excel
file
with many sheets and would like to set default excel sheet.
I would be grateful if anybody could help me to how to set default excel
sheet.
Thanks and regards
jigme
|
|
|
| Back to top |
|
 |
Jigme Wangchuk Guest
|
Posted: Wed Jan 21, 2004 4:30 am Post subject: Re: How to set Default Excel Sheet |
|
|
hi,
I tried as per your kind advice. However, still it is unsuccessful.
Could you please give me a sample code?.
This is how I open an existing Excel file:
FMyExcelBook := FMyExcelApp.Workbooks.Open(Edit1.Text,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam, EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
DEFAULT_LCID);
Thnx in advance
jigme
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote
| Quote: | Just call Select method for Sheet
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message:
news:400cf7a5 (AT) newsgroups (DOT) borland.com...
Hi,
I'm using Excel_tlb to generate reports to MS Excel. I have an Excel
file
with many sheets and would like to set default excel sheet.
I would be grateful if anybody could help me to how to set default excel
sheet.
Thanks and regards
jigme
|
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Wed Jan 21, 2004 5:35 am Post subject: Re: How to set Default Excel Sheet |
|
|
FMyExcelBook.Sheets.Item[1].Select(EmptyParam, DEFAULT_LCID)
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote
| Quote: | hi,
I tried as per your kind advice. However, still it is unsuccessful.
Could you please give me a sample code?.
This is how I open an existing Excel file:
FMyExcelBook := FMyExcelApp.Workbooks.Open(Edit1.Text,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam, EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
DEFAULT_LCID);
Thnx in advance
jigme
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote in message
news:400d01b5$1 (AT) newsgroups (DOT) borland.com...
Just call Select method for Sheet
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message:
news:400cf7a5 (AT) newsgroups (DOT) borland.com...
Hi,
I'm using Excel_tlb to generate reports to MS Excel. I have an Excel
file
with many sheets and would like to set default excel sheet.
I would be grateful if anybody could help me to how to set default
excel
sheet.
Thanks and regards
jigme
|
|
|
| Back to top |
|
 |
Jigme Wangchuk Guest
|
Posted: Wed Jan 21, 2004 6:20 am Post subject: Re: How to set Default Excel Sheet |
|
|
thanks for your kind help. However, i'm sorry...i get an error "Undeclared
identifier 'Select'"
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote
| Quote: | FMyExcelBook.Sheets.Item[1].Select(EmptyParam, DEFAULT_LCID)
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message
news:400dff32 (AT) newsgroups (DOT) borland.com...
hi,
I tried as per your kind advice. However, still it is unsuccessful.
Could you please give me a sample code?.
This is how I open an existing Excel file:
FMyExcelBook := FMyExcelApp.Workbooks.Open(Edit1.Text,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam, EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
DEFAULT_LCID);
Thnx in advance
jigme
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote in message
news:400d01b5$1 (AT) newsgroups (DOT) borland.com...
Just call Select method for Sheet
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message:
news:400cf7a5 (AT) newsgroups (DOT) borland.com...
Hi,
I'm using Excel_tlb to generate reports to MS Excel. I have an
Excel
file
with many sheets and would like to set default excel sheet.
I would be grateful if anybody could help me to how to set default
excel
sheet.
Thanks and regards
jigme
|
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Wed Jan 21, 2004 11:50 am Post subject: Re: How to set Default Excel Sheet |
|
|
FMyExcelBook.Worksheets.Item[1].Select(EmptyParam, DEFAULT_LCID)
or
FMyExcelBook.Worksheets.Item[1].Activate
Instead Item[..] you may use sheet names:
FMyExcelBook.Worksheets['Sheet1'].Activate
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message:
news:400e34bb (AT) newsgroups (DOT) borland.com...
| Quote: | thanks for your kind help. However, i'm sorry...i get an error
"Undeclared
identifier 'Select'"
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote in message
news:400e1231 (AT) newsgroups (DOT) borland.com...
FMyExcelBook.Sheets.Item[1].Select(EmptyParam, DEFAULT_LCID)
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message
news:400dff32 (AT) newsgroups (DOT) borland.com...
hi,
I tried as per your kind advice. However, still it is unsuccessful.
Could you please give me a sample code?.
This is how I open an existing Excel file:
FMyExcelBook := FMyExcelApp.Workbooks.Open(Edit1.Text,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam, EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,
DEFAULT_LCID);
Thnx in advance
jigme
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote in message
news:400d01b5$1 (AT) newsgroups (DOT) borland.com...
Just call Select method for Sheet
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Jigme Wangchuk" <jigmewangchuk (AT) druknet (DOT) bt> wrote in message:
news:400cf7a5 (AT) newsgroups (DOT) borland.com...
Hi,
I'm using Excel_tlb to generate reports to MS Excel. I have an
Excel
file
with many sheets and would like to set default excel sheet.
I would be grateful if anybody could help me to how to set default
excel
sheet.
Thanks and regards
jigme
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|