BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to set Default Excel Sheet

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Jigme Wangchuk
Guest





PostPosted: Tue Jan 20, 2004 9:45 am    Post subject: How to set Default Excel Sheet Reply with 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
Mike Shkolnik
Guest





PostPosted: Tue Jan 20, 2004 10:24 am    Post subject: Re: How to set Default Excel Sheet Reply with 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...
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





PostPosted: Wed Jan 21, 2004 4:03 am    Post subject: Re: How to set Default Excel Sheet Reply with quote



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





PostPosted: Wed Jan 21, 2004 4:30 am    Post subject: Re: How to set Default Excel Sheet Reply with 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

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





PostPosted: Wed Jan 21, 2004 5:35 am    Post subject: Re: How to set Default Excel Sheet Reply with 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

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





PostPosted: Wed Jan 21, 2004 6:20 am    Post subject: Re: How to set Default Excel Sheet Reply with 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

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





PostPosted: Wed Jan 21, 2004 11:50 am    Post subject: Re: How to set Default Excel Sheet Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.