Consulting

Page 2 of 2 FirstFirst 1 2
Results 21 to 22 of 22

Thread: how to save worksheets in another excel file?

  1. #21
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,286
    Location
    Quote Originally Posted by maryam
    charlize it gives me debug that :"cannot rename the sheet to the same name as another sheet, a refrenced object library or..."
    Of course, you'll have to check if the name that you want to add, already exists. If so, you could add the data of the current workbooksheet to the copytoworkbooksheet and skip the creation of the sheet otherwise create and copy.

    Charlize

  2. #22
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    The code I posted saves into a new workbook.

Posting Permissions

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