Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Ramya
Contributor III
Contributor III

How to export the st table to excel based on the selections

Hi All,

i am having the following requirement.

when i click on the export button the following st table should be exported to excel with the each region data into one sheet.

per suppose emea region into one sheet, apj into another and ams into one another sheets.

here i am attaching the sample qvw.

below is the data

regioncompany namesupervisorsales
amsxsony245
apjyfim255
emeazjen265
apjtcsbin450
apjctsfun350
amsboschsun679
emealgram789
amssamsungrama532

I am new to macros kindly help me out wit this.

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

so you want to generate one excel file per country and every excelfile containing the tabs subjid (001-002,....)???

then see attached qvw and adapt the exportpath inside macro according your environment

hope this helps

View solution in original post

13 Replies
Frank_Hartmann
Master II
Master II

see attached qvw

hope this helps

Ramya
Contributor III
Contributor III
Author

Hi Frank,

Thank you for the quick response .

but i need to get the export to excel. this thing i am unable to find in the qvw you shared.

can you help me out

Frank_Hartmann
Master II
Master II

if you press the "createExcelReport" Button within my uploaded qvw, then Excel is opening with the exported Tables, right?

1.gif

Ramya
Contributor III
Contributor III
Author

Hi Frank,

when i clicked on export to excel button it is opening the macro script instead of  opening in the excel.

Frank_Hartmann
Master II
Master II

make sure that you have these settings activated inside Module and retry:

Unbenannt.png

Ramya
Contributor III
Contributor III
Author

Hi Frank,

Thank you so much for the help.

i need  a small change instead of region 1 and region 2  and region 3 can we get the region names as emea ,ams ,apj as sheet names in the excel

Frank_Hartmann
Master II
Master II

see attached

hope this helps

Ramya
Contributor III
Contributor III
Author

Hi Frank,

Thanks for all the help you provided.

i need one more help with all the inputs from you i had modified the  code below attached .

right now we have hardocded for 2 subjects can you help me to make it dynamic for all the subjid without hardcoding

Your code is simple but here they are using the below code.

Kindly help me out to achieve this.

Thanks and Regards,

Ramya

 

 

Frank_Hartmann
Master II
Master II

see attached