Dear Surya,

Please try below code and See attached sheet..

Sub export_report()

Sheet3.UsedRange.Copy
Workbooks.Add
Set wkb = ActiveWorkbook
wkb.Sheets(1).Select
ActiveSheet.Paste
wkb.SaveAs "C:\Documents and Settings\Administrator\Desktop\" & "Details-" &
VBA.Format(Now(), "dd-mm-yyyy") & ".xls"
wkb.Close
End sub
On Thu, Sep 22, 2011 at 10:59 AM, Mr Excellent <suryaprasad...@gmail.com>wrote:

> Hi Group
>
> I have a spread sheet which has 3 TABS and the last tab is saved with the
> required information and i need a VBA code for exporting only the TAB named
> as "Details" to be exported on my desktop with xls format and file which has
> to be saved should be named as "Details - Present Date( DD-MM-YYYY).xls"
>
> Could anyone help me on this.
>
> Thanks
> Prasad
>
> --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>



-- 
Thanks & regards,
Noorain Ansari
 *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
*http://noorain-ansari.blogspot.com/* <http://noorain-ansari.blogspot.com/>

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Attachment: Export(Solved).xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12

Reply via email to