Thanks, Nick.
I did this and progressed past Sheets("Daily").Copy but now bomb out o
Columns("H:J").Select. I now get Run-time error "1004": Select metho
of Range class failed.
Any further thoughts, please? This is driving me to coffee!
Any suggestions would be very welcome
--
Message posted from http://www.ExcelForum.com
Lee
The recorded code is ugly with all the activations and selects which are not
necessary really, I've tidied it up a little, presuming the CommandButtons
are on the worksheet you are copying to another book and then deleting them.
Note: very little selecting, apart from where I thought it may be you
wanting to end with a certain cell selected.
Private Sub CommandButton2_Click()
Sheets("Daily").Copy
With ActiveSheet
.Columns("H:J").Delete Shift:=xlToLeft
.Shapes("CommandButton2").Delete
.Shapes("CommandButton1").Delete
End With
ActiveSheet.Range("B4").Select
With ActiveWorkbook
.SaveAs Filename:="G:\ER\ECM-POL Commencements\POL
Commencements_05-07-2004.xls"
.Close
End With
End Sub

Signature
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS
> Thanks, Nick.
>
[quoted text clipped - 8 lines]
> ---
> Message posted from http://www.ExcelForum.com/
Lee Jeffery - 08 Jul 2004 02:29 GMT
Nick,
You are a wonderful person! This works beautifully. I'll be able t
get some sleep now I don't have to drink extra coffee!!
Your suggestion has just helped me finalise a huge productivit
improvement and I am very grateful for your assistance.
Thanks again.
P.S. I've enrolled in an Excel/VBA class so I can learn a lot mor
about the correct way to go about producing code for the fairly basi
things I need to do with Excel
--
Message posted from http://www.ExcelForum.com
Nick Hodge - 08 Jul 2004 07:14 GMT
Lee
Pleasure.
Stick around here too. It's amazing what you pick up which spurs you on to
the next project

Signature
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.uk.ANDTHIS
> Nick,
>
[quoted text clipped - 12 lines]
> ---
> Message posted from http://www.ExcelForum.com/