Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default SaveAs in xlNormal Format

Is there a way of adding the = xlNormal from the first statement, to
the last row of the second statement.
I've tried the obvious (I think)
I'm trying to avoid the pop up ( this file already exists........), due to
the double save I am currently doing.
Thanks in advance.

' Save File in 2003 Format
ActiveWorkbook.SaveAs FileFormat:=xlNormal

' Use Existing name, Modified by adding "J" at the end
OldPath = ActiveWorkbook.Path & "\"
OldName = ActiveWorkbook.Name
NewPath = "C:\ZEXTRACT\"
NewName = NewPath & Left(OldName, Len(OldName) - 4) & "J.xls"
ActiveWorkbook.SaveAs NewName

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default SaveAs in xlNormal Format

Hi BEEJAY

I'm trying to avoid the pop up ( this file already exists........),


You can use this

Application.DisplayAlerts = False
'Your save code
Application.DisplayAlerts = True


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"BEEJAY" wrote in message ...
Is there a way of adding the = xlNormal from the first statement, to
the last row of the second statement.
I've tried the obvious (I think)
I'm trying to avoid the pop up ( this file already exists........), due to
the double save I am currently doing.
Thanks in advance.

' Save File in 2003 Format
ActiveWorkbook.SaveAs FileFormat:=xlNormal

' Use Existing name, Modified by adding "J" at the end
OldPath = ActiveWorkbook.Path & "\"
OldName = ActiveWorkbook.Name
NewPath = "C:\ZEXTRACT\"
NewName = NewPath & Left(OldName, Len(OldName) - 4) & "J.xls"
ActiveWorkbook.SaveAs NewName

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default SaveAs in xlNormal Format

As always, thanks so much.
Often I can't see the trees for the forest
jfs


"Ron de Bruin" wrote:

Hi BEEJAY

I'm trying to avoid the pop up ( this file already exists........),


You can use this

Application.DisplayAlerts = False
'Your save code
Application.DisplayAlerts = True


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"BEEJAY" wrote in message ...
Is there a way of adding the = xlNormal from the first statement, to
the last row of the second statement.
I've tried the obvious (I think)
I'm trying to avoid the pop up ( this file already exists........), due to
the double save I am currently doing.
Thanks in advance.

' Save File in 2003 Format
ActiveWorkbook.SaveAs FileFormat:=xlNormal

' Use Existing name, Modified by adding "J" at the end
OldPath = ActiveWorkbook.Path & "\"
OldName = ActiveWorkbook.Name
NewPath = "C:\ZEXTRACT\"
NewName = NewPath & Left(OldName, Len(OldName) - 4) & "J.xls"
ActiveWorkbook.SaveAs NewName


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
What is xlNormal? RyanAtWork Excel Discussion (Misc queries) 4 December 11th 09 07:31 PM
Please! Hide workbook title bar when WindowState = xlNormal Glauco Excel Discussion (Misc queries) 0 March 18th 07 10:43 PM
Macro SaveAs - Date format jonnyhbgood Excel Programming 2 March 9th 06 06:37 PM
activeworkbook.saveas - saving format changes tk3 Excel Programming 3 August 2nd 04 05:14 PM
URGENT - Need date format for SaveAs code Ed[_9_] Excel Programming 4 November 6th 03 08:48 PM


All times are GMT +1. The time now is 04:12 PM.

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

About Us

"It's about Microsoft Excel"