+ Reply to Thread
Results 1 to 15 of 15

Running invoice no. in Template used by multiple users

  1. #1
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Running invoice no. in Template used by multiple users

    Hi,

    Can anyone share idea about using macro file by many user?

    I have the macro template that can generate running invoice number and then save the template with new running no. The problem is that when there is more than one user open this template, the running number can be run but cannot save because another person is opening and the second person is on read-only mode. I know this can be best if I have access to store all data but at the moment the access is not available to use yet.

    I cannot allow this template to be saved as new file once it is opened because it's required some fields before user can save it which it takes a while to do so. Thing is, it always possible that the second person will open this just right after the first person opens the template.

    Please Login or Register  to view this content.
    Please help

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Running invoice no. in Template used by multiple users

    Share the Workbook>>Alt+T+B


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Running invoice no. in Template used by multiple users

    Hi Sixthsense,

    I have shared but it shows error and cannot view what is error. Please suggest.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Running invoice no. in Template used by multiple users

    Please attach the screenshot of the error

  5. #5
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Running invoice no. in Template used by multiple users

    Error.jpg

    Please see picture

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Running invoice no. in Template used by multiple users

    Applying/Removing of protection can't be done while the workbook is in shared mode That is the root cause of this error. Sorry for the inconvenience

  7. #7
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Running invoice no. in Template used by multiple users

    Hi,

    Thank you. So then I cannot protect my file right?

    Can you let me know of this code, when I remove me.unprotect and me.protect, shows error in red line.

    Please Login or Register  to view this content.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Running invoice no. in Template used by multiple users

    Instead of Selection.PasteSpecial type activecell.PasteSpecial and Type Opening Parenthesis ( which will show the remaining arguments needs to be supplied.

  9. #9
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Running invoice no. in Template used by multiple users

    Hi sorry where can I type (
    It shows compile error, please let me know
    Do i need any space or something to make it complete?
    Thank you

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Running invoice no. in Template used by multiple users

    You just replace the text Selection.PasteSpecial by typing activecell.PasteSpecial( once you typed opening parenthesis you will get some methods how the paste needs to be done.

  11. #11
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Running invoice no. in Template used by multiple users

    Hi, sorry for not response as I have been trying with all methods in () after "activecell.PasteSpecial"
    unfortunately none of them get it work.
    I do not know what I did wrong

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Running invoice no. in Template used by multiple users

    May be try this...

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Running invoice no. in Template used by multiple users

    Hi

    now it works but then I have to protect the sheet anyway right?

  14. #14
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Running invoice no. in Template used by multiple users

    Yes if you need...

  15. #15
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Running invoice no. in Template used by multiple users

    Thank you so much Sixthsense.

+ Reply to Thread

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