Results 1 to 6 of 6

Save as In sequence

Threaded View

DJarqus Save as In sequence 06-17-2007, 12:30 PM
VBA Noob Please read forum rules below... 06-17-2007, 12:49 PM
mikerickson How about having a MsgBox... 06-17-2007, 12:50 PM
DJarqus ok I've got the auto save as... 06-17-2007, 06:40 PM
mikerickson Somewhere in the... 06-17-2007, 09:15 PM
DJarqus Ok thank guys all has helped... 06-18-2007, 05:09 PM
  1. #1
    Registered User
    Join Date
    06-16-2007
    Posts
    10

    Save as In sequence

    Hi all,

    I have searched these forums (the answer is prob in here somewhere prob missed)

    anyway

    All I want is to automate a sequential number in only 1 cell. This is the code I have.
    Private Sub Workbook_Open()
    With Sheets("Loading Docket Copy").Range("J8")
    .Value = .Value + 1
    End With
    End Sub
    All good and it works , but. There is alot of amending out at work, and with the above code you ...type ya info in print then save close etc. Open the next one and the number has changed all good. So when I have to go back open the file and amend a stuff up or something, it'll add another number onto it so in other words. It was ment to be 10000 it is now 10001. (It’s easy enough for me to fix cause I'll know it has changed the number automatically) but if some else fixes a mistake , they wont even look at the docket number as it wasnt wrong in the first place, until it was reopened.

    It would be also good if I could get a file saveAS going as well (that would change in sequence with the docket number)is this even possible?? I know you can make it save AS "blahblah.xls" but can I get it to change in line as well? i.e blahblah10001.xls

    So all I’m after is.....how do you stop it from adding on that extra numbers (or even with auto time and date) but how can I get them to stop updating when I REopen the file.

    here is the link to a demo file..
    http://files-upload.com/305378/Copyo...10000.zip.html
    unprotect sheet password is password

    Thanks In advance,
    Damo


    edit> Sorry
    Last edited by DJarqus; 06-17-2007 at 04:15 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1