Results 1 to 3 of 3

Thread: *Resolved* Macro for Excel

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275

    Resolved *Resolved* Macro for Excel

    I want to create a macro, linked to a button, that creates a new worksheet and then moves it to the end of the worksheet list.

    I've tried recording a macro and then looking at the code but I can't seem to edit it to make it do what I want. I assume I'll have to use the 'xllast' command somewhere but whenever I try to include this in the code I get errors.

    Anyone got any ideas?

    Cheers
    -Rob
    Last edited by TheRobster; Nov 3rd, 2004 at 09:22 PM.

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    Code:
    Sheets.Add after:=Sheets(ActiveWorkbook.Sheets.Count)
    Regards
    BrianB
    -------------------------------

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275
    Cheers Brian, that works a treat.

Posting Permissions

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



Click Here to Expand Forum to Full Width