function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ajeeth Kumar SAjeeth Kumar S 

how to redirect the record page after download excel without using any button in vf page?

SandhyaSandhya (Salesforce Developers) 
Hi,

After your Export operation do like this in same method,
Pagereference pf=new Pagereference('/apex/yourpagename'); pf.setredirect(true); 
return pf;

   Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 

​​​​​​​