Skip to Content
author's profile photo Former Member
Former Member

activate specific sheet in excel?

Good Day to ALL!

I patterned my program in RSDEMO1(Download to Excel)and it goes well except the active Excel sheet is "Sheet1" by default)

The requirement is when my data reaches 11 records, i want it to write in "Sheet2"?

How can i activate the next sheet?

How can i go back to previous sheet?

Any sample codes can help...

THANKS...

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 06:23 AM

    Refer this:

    download-data-to-different-worksheets-in-an-excel-

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2004 at 10:58 PM

    Hi Evan

    If you are using SAP DOI (Desktop Office Integration) you can use the method John mentioned at the thread pointed by Subramanian.

    If you are using pure OLE, you can use this:

    FORM activate_sheet USING ip_sheet .
      CALL METHOD OF gs_excel 'Worksheets' = gs_actsheet
           EXPORTING #1 = ip_sheet .
      CALL METHOD OF gs_actsheet 'Activate' .
    ENDFORM .
    

    Hope this helps...

    *--Serdar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.