Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save file as sequential


Is there any code which would enable me to save the excel file as a
predefined sequential number.

I.E. I have products with serial numbers 050501AB, 050502AB etc etc

The serial number is scanned in by a barcode reader and located in a
predefined cell.
I want to save the excel workbook as this serial number automatically.

Any help would be appreciated.


--
psipsi
------------------------------------------------------------------------
psipsi's Profile: http://www.excelforum.com/member.php...o&userid=26780
View this thread: http://www.excelforum.com/showthread...hreadid=404633

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Save file as sequential


ActiveWorkbook.SaveAs Filename:=Range("A1")

Replace A1 by your predefined cell! If you want to place the file in a
directory other then your default directory, insert also the required path:

savepath = "C:\dir1\dir2\"
ActiveWorkbook.SaveAs Filename:=savepath & Range("A1")

Regards,
Stefi


€˛psipsi€¯ ezt Ć*rta:


Is there any code which would enable me to save the excel file as a
predefined sequential number.

I.E. I have products with serial numbers 050501AB, 050502AB etc etc

The serial number is scanned in by a barcode reader and located in a
predefined cell.
I want to save the excel workbook as this serial number automatically.

Any help would be appreciated.


--
psipsi
------------------------------------------------------------------------
psipsi's Profile: http://www.excelforum.com/member.php...o&userid=26780
View this thread: http://www.excelforum.com/showthread...hreadid=404633


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
how do I insert a sequential number to a cell each time the file i Steven Jones[_2_] New Users to Excel 2 July 20th 08 12:26 PM
Non-sequential VLOOKUP function -OR- sequential sort of web query Eric S Excel Worksheet Functions 1 February 28th 05 07:50 PM
Excel marcos firing on file save as but not file save Andy Excel Programming 1 August 3rd 04 10:34 AM
Save File to Another Directory, but not change Users File Save location Mike Knight Excel Programming 1 May 28th 04 09:06 PM
Saving a File Generates a Sequential Number Name Shauna Koppang Excel Programming 1 August 23rd 03 12:08 AM


All times are GMT +1. The time now is 08:59 AM.

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"