Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: How to write to Registry

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    John G
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have an invoice program that I want to keep track of the current invoice number and update that sequentially. Can I write the current invoice number to the registry and if so, how do I do that?


    John

  2. #2
    MrExcel MVP Mark O'Brien's Avatar
    Join Date
    Feb 2002
    Location
    Columbus, OH, USA
    Posts
    3,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You can use "SaveSetting" and "GetSetting" just so long as you don'y really care what part of the registry you're writing to. I believe that this writes to a VBA directory of the registry.

    Anyway, the help file's got a good example there and it should help you.

  3. #3
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You could also create your own
    Text file or ini file and just refernce this
    via sequential line input

    Look up Input in the VBE

    Ivan

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Another option
    Use some API calls to access the whole registry. If you need them, repost.
    Regards,

    Juan Pablo González
    http://www.juanpg.com

  5. #5
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi jgoulart

    I have a free downlod here that maybe of interest to you: http://www.ozgrid.com/download/default.htm
    It's under:
    InvoiceAutoNumber.zip



Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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