Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Apr 2007
    Location
    Lancashire, United Kingdom
    Posts
    264
    Thanks
    32
    Thanked 5 Times in 5 Posts

    Thumbs up Copy a sheet from one workbook to another?

    I want to copy a sheet from one workbook (the one with the code) to a new spreadsheet

    This is my code:

    Code:
        Set Wrdata = Worksheets("Rack Template")
    
        Application.SheetsInNewWorkbook = 1
        Set rackbook = Workbooks.Add
    '***
    '*** copy the template in for use later
    '***
        Wrdata.Copy rackbook.Sheets(1)
    But the last statement does nothing at all. I would expect it to have created a new sheet called "Rack Template".

    Anyone know what I am doing wrong?

    thanks

    Alan

  2. #2
    3 Star Lounger
    Join Date
    Apr 2007
    Location
    Lancashire, United Kingdom
    Posts
    264
    Thanks
    32
    Thanked 5 Times in 5 Posts
    Oh.....

    The tab was hidden - and so was the copy.

    So the code works fine !!!!

    Cheers

    Alan

Posting Permissions

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