Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Auto filesaveas vba code

Hi there guys,
I have tried all of the suggestions but non worked (maybe is because I
am a newby) but please please try and help me again.
the project is this:
1) Cell c3 contains a text that will act as the file name.
2) the code needs to use this text as file name and save it to a
directory c:\program files\shopping\recipes.
3) if the file exists then the user needs to be prompted to save or
rename in that directory.

Thank you again.

Alan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Auto filesaveas vba code

Alan,
Show us what have at the moment.

NickHK

"alanford" wrote in message
ups.com...
Hi there guys,
I have tried all of the suggestions but non worked (maybe is because I
am a newby) but please please try and help me again.
the project is this:
1) Cell c3 contains a text that will act as the file name.
2) the code needs to use this text as file name and save it to a
directory c:\program files\shopping\recipes.
3) if the file exists then the user needs to be prompted to save or
rename in that directory.

Thank you again.

Alan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Auto filesaveas vba code

Hi Alan,

the project is this:
1) Cell c3 contains a text that will act as the file name.
2) the code needs to use this text as file name and save

it to a
directory c:\program files\shopping\recipes.


This should do:

Workbooks("abcd.xls").SaveAs FileName:="program
files\shopping\recipes\" & Range("c2").Value & ".xls"

3) if the file exists then the user needs to be prompted

to save or
rename in that directory.


This should work automatically unless you do not want
excell to hide that prompt.

Best

Markus
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Auto filesaveas vba code

Markus
thanks for your tip. it works fine the only issue is that if the file
exists already I need to ask the user to either save it over or choose
another name, do you know what I should add?

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
Auto code to add tab Very Basic User Excel Discussion (Misc queries) 3 November 11th 09 01:58 PM
Auto Highlight Code joelbeveridge Excel Discussion (Misc queries) 2 August 4th 06 02:11 AM
auto zip code esslingerdav Excel Worksheet Functions 1 January 18th 05 06:55 PM
If user says "No" to FileSaveAs Overwrite? OceansideDJ Excel Programming 5 October 30th 04 01:58 AM
Forcing a FileSaveAs John Petty Excel Programming 6 September 14th 03 01:44 AM


All times are GMT +1. The time now is 10:33 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"