Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Feb 2001
    Location
    Toronto, Ontario, Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Copy code progammatically (Excel 2000)

    When the user clicks the Post button on the InputSheet of his template, data is captured on a Summary sheet and the InputSheet is moved to a new file and saved. (A hidden copy of the InputSheet is copied and renamed to replace the one moved out)
    A change event pops up a calendar when the user selects certain cells on the InputSheet as long as it's part of the template.
    But the form is not copied. How can I have the Calendar form copied to the new file so the change event will still work?

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copy code progammatically (Excel 2000)

    Copy the entire workbook and remove the sheets you don't need from the copy. Check out the SaveCopyAs method.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    Lounger
    Join Date
    Feb 2001
    Location
    Toronto, Ontario, Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copy code progammatically (Excel 2000)

    Thanks. Seems so obvious when you say it!

Posting Permissions

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