Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Sequential numbering

Im currently trying to implement sequential numbering for our homemade
purchase, order and invoice system.
There are 4 conditions to consider:
1. There are several series of number, i.e. 1 for purchases, 1 for orders,
etc.
2. The number shall be picked when starting the new registration and be
finally confirmed and written at the completion of the registration (I might
cancel during registration)
3. The numbers/file shall be stored on a server volume for shared use by the
workgroup.
4. We oversee the risk of using the same number simultaneously.

A couple of years ago I wrote a fax document system for Word. In Word you have
the function of a System.PrivateProfileString. It works excellently as you
easily can share a textfile with Labels for retrieving and saving different
information, even sections can be used. Its easily read from and written to.
Unfortunately it doesnt exist in Excel!

Is it possible to do something similar in Excel.
Ive read McGimpseys solution but it doesnt tell how to read first and
write later.
I also would like to use several labeled address lines, storing all the
different numbers in one file.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 266
Default Sequential numbering


"Mats Samson" skrev i en meddelelse
...
I'm currently trying to implement sequential numbering for our "homemade"
purchase, order and invoice system.
There are 4 conditions to consider:
1. There are several series of number, i.e. 1 for purchases, 1 for orders,
etc.
2. The number shall be picked when starting the new registration and be
finally confirmed and written at the completion of the registration (I
might
cancel during registration)
3. The numbers/file shall be stored on a server volume for shared use by
the
workgroup.
4. We oversee the risk of using the same number simultaneously.

A couple of years ago I wrote a fax document system for Word. In Word you
have
the function of a System.PrivateProfileString. It works excellently as you
easily can share a textfile with Labels for retrieving and saving
different
information, even sections can be used. It's easily read from and written
to.
Unfortunately it doesn't exist in Excel!

Is it possible to do something similar in Excel.
I've read McGimpsey's solution but it doesn't tell how to read first and
write later.
I also would like to use several labeled address lines, storing all the
different numbers in one file.


Mats

You can use automation to get access to PrivateProfileString.
Something along these lines. Remember to set a
reference to the Word library from the VBA-editor.

Sub PPString()
'Leo Heuser, 20 Oct. 2005
Dim WordApp As Word.Application

Set WordApp = New Word.Application

With WordApp
.System. _
PrivateProfileString("C:\Test45.txt", "Test", "Test45") = "680"
.Quit
End With

Set WordApp = Nothing

End Sub


--
Best regards
Leo Heuser

Followup to newsgroup only please.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Sequential numbering

Thank you Leo,
it worked fine!
BR
Mats

"Leo Heuser" wrote:


"Mats Samson" skrev i en meddelelse
...
I'm currently trying to implement sequential numbering for our "homemade"
purchase, order and invoice system.
There are 4 conditions to consider:
1. There are several series of number, i.e. 1 for purchases, 1 for orders,
etc.
2. The number shall be picked when starting the new registration and be
finally confirmed and written at the completion of the registration (I
might
cancel during registration)
3. The numbers/file shall be stored on a server volume for shared use by
the
workgroup.
4. We oversee the risk of using the same number simultaneously.

A couple of years ago I wrote a fax document system for Word. In Word you
have
the function of a System.PrivateProfileString. It works excellently as you
easily can share a textfile with Labels for retrieving and saving
different
information, even sections can be used. It's easily read from and written
to.
Unfortunately it doesn't exist in Excel!

Is it possible to do something similar in Excel.
I've read McGimpsey's solution but it doesn't tell how to read first and
write later.
I also would like to use several labeled address lines, storing all the
different numbers in one file.


Mats

You can use automation to get access to PrivateProfileString.
Something along these lines. Remember to set a
reference to the Word library from the VBA-editor.

Sub PPString()
'Leo Heuser, 20 Oct. 2005
Dim WordApp As Word.Application

Set WordApp = New Word.Application

With WordApp
.System. _
PrivateProfileString("C:\Test45.txt", "Test", "Test45") = "680"
.Quit
End With

Set WordApp = Nothing

End Sub


--
Best regards
Leo Heuser

Followup to newsgroup only please.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 266
Default Sequential numbering

"Mats Samson" skrev i en meddelelse
...
Thank you Leo,
it worked fine!
BR
Mats

You're welcome, Mats.
Thanks for the feedback.

Regards
Leo Heuser


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
Sequential Numbering EricBB Excel Discussion (Misc queries) 2 August 24th 09 06:11 PM
Sequential numbering Scott Hemphill Excel Discussion (Misc queries) 2 July 24th 07 05:24 PM
PO with sequential numbering with start / end numbering [email protected] Excel Discussion (Misc queries) 1 April 24th 07 03:38 PM
sequential numbering super[_2_] Excel Programming 3 June 29th 05 03:39 PM
Sequential Numbering. Rodney New Users to Excel 3 May 2nd 05 09:34 PM


All times are GMT +1. The time now is 10:44 PM.

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"