Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Copy Worksheets

Hi all,

I have a workbook that copys an array of sheets into a new workbook saves it
and closes it, and until now I've had no touble with it but I open it on
another computer however it won't let my function work, what seems to happen
is that it stops at copy command and won't go any further and doesn't even
come up with an error message of anything however manually if you select the
sheets and copy to new workbook it works. Below is my code, so if any one can
help me with this whether there is a setting that does this or something else
?

Sub Export()
'-- Select Pricing Sheets --
Sheets(Array("Pricing1", "Pricing2", "Pricing3", "Pricing4", _
"Pricing5", "Pricing6", "Pricing7", "Pricing8", _
"Pricing9", "Pricing10")).Select
Sheets("Pricing1").Activate
'-- Copy Pricing Sheets --
Sheets(Array("Pricing1", "Pricing2", "Pricing3", "Pricing4", _
"Pricing5", "Pricing6", "Pricing7", "Pricing8", _
"Pricing9", "Pricing10")).Copy
'-- Save Export --
FileSaveName = Application.GetSaveAsFilename(InitialFileName:="Pr icing -" &
Format(Date, "dd-mm-yyyy") & ".Pri", FileFilter:="Pricing Files (*.Pri),
*.Pri")
ActiveWorkbook.SaveAs Filename:=FileSaveName, FileFormat:=xlNormal,
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=False
ActiveWorkbook.Close
End Sub


Thanks in advance

Jason
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy worksheets MJ Excel Discussion (Misc queries) 2 February 19th 09 01:31 AM
how do i copy a cell in worksheets 10 to the other 9 worksheets bete New Users to Excel 3 March 15th 07 10:41 AM
copy between worksheets does not copy formulae just values Chris@1000 Oaks Excel Discussion (Misc queries) 0 March 19th 06 11:44 AM
How to copy worksheets STS Excel Worksheet Functions 0 October 2nd 05 09:19 PM
Worksheets won't copy Ted Excel Discussion (Misc queries) 0 June 1st 05 01:01 AM


All times are GMT +1. The time now is 01:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"