+ Reply to Thread
Results 1 to 3 of 3

copy worksheet without including vba code

  1. #1
    Registered User
    Join Date
    01-31-2006
    Posts
    20

    copy worksheet without including vba code

    I wish to copy a worksheet using vba but not include the VBA code and userform with the copy. IS this possible if so how? Thanks

    Please Login or Register  to view this content.

  2. #2
    Ingolf
    Guest

    Re: copy worksheet without including vba code

    Hi,

    copy a range instead.

    ActiveWorkbook.Sheets(1).Cells.Copy
    Workbooks("abc.xls").Worksheets.Add
    ActiveSheet.Cells.PasteSpecial Paste:=xlPasteAll

    Regards,
    Ingolf



    cedtech23 schrieb:

    > I wish to copy a worksheet using vba but not include the VBA code and
    > userform with the copy. IS this possible if so how? Thanks
    >
    >
    > Code:
    > --------------------
    >
    > ActiveWorkbook.Sheets(1).Copy
    >
    > --------------------
    >
    >
    > --
    > cedtech23
    > ------------------------------------------------------------------------
    > cedtech23's Profile: http://www.excelforum.com/member.php...o&userid=31022
    > View this thread: http://www.excelforum.com/showthread...hreadid=563379



  3. #3
    Ron de Bruin
    Guest

    Re: copy worksheet without including vba code

    Hi cedtech23

    You can delete the VBA in the new workbook
    http://www.cpearson.com/excel/vbe.htm

    I always use my Mail add-in and send the worksheet without VBA to myself
    http://www.rondebruin.nl/mail/add-in.htm


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "cedtech23" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I wish to copy a worksheet using vba but not include the VBA code and
    > userform with the copy. IS this possible if so how? Thanks
    >
    >
    > Code:
    > --------------------
    >
    > ActiveWorkbook.Sheets(1).Copy
    >
    > --------------------
    >
    >
    > --
    > cedtech23
    > ------------------------------------------------------------------------
    > cedtech23's Profile: http://www.excelforum.com/member.php...o&userid=31022
    > View this thread: http://www.excelforum.com/showthread...hreadid=563379
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1