Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create sequential file name for uploaded template

I have an Excel template that I would like to put on our intranet. I want it
to create a unique, sequential file name each time it is uploaded, as well as
put that unique number in a cell within the template. For example, I want the
numbering to start with 1001. When someone uploads the file, the file name
will be 1001.xls and the document number cell will be 1001. The next person
that uploads the file will be 1002.xls.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Create sequential file name for uploaded template

How is it being uploaded? Do you have a routine which saves the file to a
specific location?
Is there only one copy or does 1 copy exist?

--
Tim Williams
Palo Alto, CA


"Lisa Alex" <Lisa wrote in message
...
I have an Excel template that I would like to put on our intranet. I want

it
to create a unique, sequential file name each time it is uploaded, as well

as
put that unique number in a cell within the template. For example, I want

the
numbering to start with 1001. When someone uploads the file, the file name
will be 1001.xls and the document number cell will be 1001. The next

person
that uploads the file will be 1002.xls.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create sequential file name for uploaded template

It will be stored on the intranet in one place with only one copy. They will
have the option as to where they want to store the file (desktop, My
Documents, etc.).

"Tim Williams" wrote:

How is it being uploaded? Do you have a routine which saves the file to a
specific location?
Is there only one copy or does 1 copy exist?

--
Tim Williams
Palo Alto, CA


"Lisa Alex" <Lisa wrote in message
...
I have an Excel template that I would like to put on our intranet. I want

it
to create a unique, sequential file name each time it is uploaded, as well

as
put that unique number in a cell within the template. For example, I want

the
numbering to start with 1001. When someone uploads the file, the file name
will be 1001.xls and the document number cell will be 1001. The next

person
that uploads the file will be 1002.xls.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Create sequential file name for uploaded template


(untested)
const F_PATH as string="\\servername\folder\subfolder\"
dim i as integer

i=1001

do while Dir(F_PATH & cstr(i) & ".xls")<""
i=i+1
loop

thisworkbook.sheets("sheet1").range("A1").value=i
thisworkbook.saveas F_PATH & cstr(i) & ".xls"


Tim.

--
Tim Williams
Palo Alto, CA


"Lisa Alex" wrote in message
...
It will be stored on the intranet in one place with only one copy. They

will
have the option as to where they want to store the file (desktop, My
Documents, etc.).

"Tim Williams" wrote:

How is it being uploaded? Do you have a routine which saves the file to

a
specific location?
Is there only one copy or does 1 copy exist?

--
Tim Williams
Palo Alto, CA


"Lisa Alex" <Lisa wrote in message
...
I have an Excel template that I would like to put on our intranet. I

want
it
to create a unique, sequential file name each time it is uploaded, as

well
as
put that unique number in a cell within the template. For example, I

want
the
numbering to start with 1001. When someone uploads the file, the file

name
will be 1001.xls and the document number cell will be 1001. The next

person
that uploads the file will be 1002.xls.






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
Sorry Uploaded The Wrong File :) Here is the right one!! - DailyMoodTool.xls (1/1) [email protected] Excel Discussion (Misc queries) 1 April 25th 08 05:25 AM
how to create sequential invoice numbers from a saved template Sean Excel Worksheet Functions 1 September 19th 07 02:07 AM
Excel won't create file from template. What to do? Jon Excel Discussion (Misc queries) 0 September 11th 06 11:31 PM
How do I create a form template that will be sequential numbered Gilly Excel Discussion (Misc queries) 1 September 13th 05 10:37 PM
Cell protection in Excel is lost when file is uploaded to website. Mandrake Excel Discussion (Misc queries) 0 March 15th 05 04:53 PM


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