+ Reply to Thread
Page 2 of 3 FirstFirst 2
Results 201 to 400 of 499

Designing an Excel application for simultaneous use and for optimal maintainability

  1. #201
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    It all worked well except it leaves the Calendar like this.
    This is the effect of introducing the audit trail in the PropertyOwners table on the Calendar's formula.
    With the audit trail Properties can appear multiple times in the PropertyOwners table. Property xy JL 105 (3000037) does.
    In the second part of the Calendar's formula (when no GuestStay is found), the formula looks if the Property is unavailable for the month involved.
    This part of the formula selects the record concerning the Property
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    but it expects only 1 record. Now there are more we need to adjust the formula for that.
    We can do that by adding the POArchived_YN column to the formula like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Tried that and it works fine.
    However the same problem would rise when a Property would have more than one owner. Then again the Property-record would appear in the PropertyOwners table multiple times and (likely) with PO_Archived_YN = "N".
    I will change the formula in v1.0.6 in the Dropbox.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  2. #202
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I guess we will have a few thing showing up every so often as we get everything working with the Archived _YN. All of the transaction stuff will need changes!

    I am going to take some screen shots of the tables that QB's use to do their recurring transactions. I will email them to you when I am done.

    When are you leaving on your trip?

    Thanks

    u3rick

  3. #203
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Just realized that what I really want is not recurring transactions like QB's. I am thinking this should charges guests as due according to their booking terms. This should be an internal part of the reservation system.

    Once a Stay is book there will be transactions posted as part of the FrmGuestActivity and payments accepted by staff. Then the internal system should take over and charge each guest 5 day before the last day of the month for the duration of their stay. Payments will be recorded as paid by staff. The system should included the same activities for the owners side of the transactions.The owners are credit on the last day of each month for next months rent and invoiced for management fees. This will be offset by a check that is paid to the owners with their statement each month.

    Rule 1. Guests are billed by the system 5 days before the last day of the month.
    Rule 2. ES rent is prepaid, in other words rent paid in February's statement is rent for March.
    Rule 3. Statements are generated after the 10th and mailed by the 15th of each month.
    Rule 4. Prorated rent paid before the 10th of February will be paid with February's statement with a check back dated to February 29 (28).
    Rule 5. Prorated rent paid after 9th of the month will be held for March's statement.
    Rule 6. Owners credits, Management fee and Stays commissions will be generated on the last day of each month for activity Stays.
    Rule 7. Accounting wise all systems ES, Both, and SV will not term rent as earned until the last day of the stay, or the last day of the prepaid month. So the checks sent to ES owners will be held in a prepaid account and released to the earned rent account on March 31st.
    Rule 8. Stays will not be Archived_YN until the deposit is refunded, retained, or some mix of the two that clears the deposit account.

    Its late so I hope this make sense, its just a start!

    Thanks

    u3rick
    Last edited by u3rick; 03-03-2016 at 08:03 PM.

  4. #204
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Everything is working, but I notice that Private Sub FillConnectionDetailsBox(OwnerId As Double) is only filling the first record. I tried the ways you have used to get the "N" included, but listbox is causing problems for me. I could use your help if you have time.

    Please Login or Register  to view this content.
    Thanks
    u3rick

  5. #205
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    When are you leaving on your trip?
    I'm leaving wednesday morning very early. I don't expect to be online after the weekend.

  6. #206
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    This will be a challenge for me to see what I can do without your continuous support!!

    Which I greatly appreciate!!

    Thanks

    u3rick

  7. #207
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Everything is working, but I notice that Private Sub FillConnectionDetailsBox(OwnerId As Double) is only filling the first record. I tried the ways you have used to get the "N" included, but listbox is causing problems for me. I could use your help if you have time.
    Ran into an error in frmConnectionActivity

    Made some changes to make it work again (saved v1.0.6 to the dropbox):

    lstConnOwnerBox_Click()
    - disabled deselecting lstUnConPropBox (makes no sense)
    - made call to FillConnectionDetailsBox conditional, because you need both an OwnerId and a PropId
    - added PropId to the call to FillConnectionDetailsBox
    lstUnConOwnerBox_Click()
    - disabled blanking txtPropertyIdCD (makes no sense)
    - disabled deselecting lstUnConPropBox (makes no sense)
    - made call to FillConnectionDetailsBox conditional, because you need both an OwnerId and a PropId
    - added PropId to the call to FillConnectionDetailsBox
    lstUnConPropBox_Click()
    - disabled deselecting lstUnConOwnerBox (makes no sense)
    - disabled deselecting lstConnOwnerBox (makes no sense)
    - made call to FillConnectionDetailsBox conditional, because you need both an OwnerId and a PropId
    - added PropId to the call to FillConnectionDetailsBox
    FillConnectionDetailsBox
    - added PropId as parameter
    - adjusted the lookup of RecIdx to handle not found error
    This gave a type mismatch because RecIdx is integer (positive numbers) where a not-found error is a negative number
    - disable setting txtPropertyIdCD and txtOwnerIdCD (already there)
    - made filling the connection box conditional based of value of RecIdx
    If 0 initialize connection box

    Funny thing: I can't test the Connect button, because it's just outside the boundaries of my laptop screen
    Edit: managed to get to the button tabbing. Connecting seems to work OK.
    Last edited by Tsjallie; 03-03-2016 at 05:26 PM.

  8. #208
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Where can I see the Properties an Owner is connected to?
    Why can I not connect an Owner to an already connected Property? Thus facilitating dual ownership.

  9. #209
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I love that set of rules. Look like requirements
    Will study them.

  10. #210
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Owed you an explaination of the audit trail.
    Attached Files Attached Files

  11. #211
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Funny thing: I can't test the Connect button, because it's just outside the boundaries of my laptop screen
    Guess you want me to make my form smaller.!:roll eyes:

    Why can I not connect an Owner to an already connected Property? Thus facilitating dual ownership.
    We never do that with owners (Two Owners in the system)! We make them pick one owner and they are the owner of record and we pass info to the other through him. Now thats not to say other companies might be different? We have handle Time Shares which have many owners to the same unit. So your point is very valid!

    Where can I see the Properties an Owner is connected to?
    That shows up on the frmManageProperties.

    u3rick

  12. #212
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Owed you an explaination of the audit trail.
    Thanks

    As records are no longer modified (apart from POArchived_YN) the columns POLastModBy and POLastModDate are obsolete
    I will start change the columns on the tables and erase the code as I go!

    Thanks

    u3rick

  13. #213
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    - disabled deselecting lstUnConPropBox (makes no sense)
    Those were in the original code that you built for the old form. I didn't know if they were needed so I add them as you had them and changed everything else. Its obvious that I can erase them if their still there!!

  14. #214
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    That shows up on the frmManageProperties.
    That shows the Owner(s) of a Property, but not the Properties of an Owner ??

    BTW, where did v1.0.6 go? Don't see it in the Dropbox

  15. #215
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    We never do that with owners (Two Owners in the system)! We make them pick one owner and they are the owner of record and we pass info to the other through him.
    Ok, fair enough.
    But how will you be handling payments by or to the owners. Or will you just assign one of the owners as legally responsible?

  16. #216
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    will you just assign one of the owners as legally responsible?
    Yes thats how Vacationville does it.

    BTW, where did v1.0.6 go? Don't see it in the Dropbox
    That would be my fault! I forgot to make a test version and late last night (2:00am here) I hit the save button, when I intended to hit the don't save button. I just got up (7am here) to see if I can fix the mess. I pulled it so you would not see the carnage! Hope to have it back in the box soon and may need your help to get it to work with my new idea on the lstConnOwnersBox.

    I know not making a test version was not very smart!

    Sorry

    u3rick

  17. #217
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Lucky me I check my time machine and found the version 1.0.6 as you saved it yesterday afternoon (my time)!

    Its in the Dropbox now and I have my test version!

    Btw; the lstConnOwnersBox when clicked on doesn't fill the Connection Details with the needed information to edit!

    Thanks

    u3rick

  18. #218
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I have a test version (Step7Testv1.0.0 attached) that approaches the Connected Owners box a little different. I have changed whats in the box. I add a table (POConnected) to feed it in the correct order. I am trying to feed the needed data to the Connection detail for Edit or disconnect.

    Now my problems, the sort is not kicking out the POArchived_YN ="Y", and (this one I knew would happen) it only feeds the first record. (I don't know how to do this)

    My logic here is when you click on owners in the Connected Owners box the Disconnect and Edit button show and it feeds the data and you can do those two tasks.

    If the Connected owner has a new additional property you click the Unconnected Properties list and it clears the listed property info except the OwnerId and feeds the PropertyID. It also hides the Disconnect and Edit button and shows the Connect button.

    Then if its a new owner you click Unconnected Owners and it overrides theOwnerId with the New owners OwnerId and leaves the Connected button.

    Not sure if this logic is good or correct so take a look.

    Thanks

    u3rick
    Attached Files Attached Files

  19. #219
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Btw; the lstConnOwnersBox when clicked on doesn't fill the Connection Details with the needed information to edit!
    That's because you need both the OwnerId and the PropertyId to find the Connection Details.
    But you can't select a connected property.

  20. #220
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Forgot on question, why is the lstConnectedOwnersBox not formatting correctly? I looked at frmGuestActivities and its list boxes are formatted correctly, but can't find why in the code?

    u3rick

  21. #221
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Now my problems, the sort is not kicking out the POArchived_YN ="Y"
    As far as I can see the archived records (POArchived_YN="Y") are correctly filtered out.

    and (this one I knew would happen) it only feeds the first record
    Can clarify what you mean?

    As for the logic of the form I must admit that I find it confusing (and probably users too).
    Normally these kind of forms are in a master-detail layout kinda like in the old forms though I would support to have separate forms for Owners and Properties.

  22. #222
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    if you click on any record in the connected owner box it only shows the first record info in the Detail box. That not surprising though as there is no code present to search for it.

    The reason for that is I didn't know how to write with a listbox!
    Last edited by u3rick; 03-04-2016 at 04:51 PM.

  23. #223
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    why is the lstConnectedOwnersBox not formatting correctly?
    You need to format the data when moving it to the listbox like this
    Please Login or Register  to view this content.

  24. #224
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    As far as I can see the archived records (POArchived_YN="Y") are correctly filtered out.
    sorry you are right Ineed to get more sleep!

  25. #225
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    You need to format the data when moving it to the listbox like this
    Thanks for that reminder!

    u3rick

  26. #226
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    bet your keeping a backup now because I can't be trusted!!

  27. #227
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    That not surprising though as there is no code present to search for it.
    Yes, there is. It's in v1.0.6. See my post #207.
    But there seems to be something rotten in that version. It crashes when opening. Don't know why.

  28. #228
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    bet your keeping a backup now because I can't be trusted!!
    I'm saving directly to Dropbox. But maybe I shouldn't

  29. #229
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I'm saving directly to Dropbox. But maybe I shouldn't
    I will do better!

  30. #230
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Yes, there is. It's in v1.0.6. See my post #207.
    I added the stuff you did in post #207. I modify it a little to do what I think it should do (Remember I don't know what I am doing!!)

    It works nice and the way I want, but no matter what I tried it will only feed the Connection Detail from the first record in Connected Owners. I can highlight the others but it only feeds the first record.

    If you could take a look (click the Connect button in OwnersPayables).

    Thanks

    u3rick
    Attached Files Attached Files

  31. #231
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    OK, let's go throught the code step by step
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    The listboxes are 2 dimensional meaning they have rows and colums. You can refer to rows and columns as parameters of List([rowindex],[columnindex]).
    Both the rowindex and the columnindex are optional. If you leave one VBA takes the default value (=0).
    In this case you've specified the rowindex and left out the columnindex always giving the PropertyId of row 0 and row 1.
    To use the currently selected row and use the PropertyId or the OwnerId you can use the Column-property which takes the column number as a parameter. And so the right syntax would be
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    You're using i for the rowindex, but i never gets a value assigned and so stays empty. That's interpreted is 0. So this will always give the PropertyId and OwnerId of the first row (=0).
    Instead of using a variable here also the Column-property can be used for pointing to the selected row and column
    Correct syntax would be
    Please Login or Register  to view this content.

    Other observations
    • in lstUnConOwnerBox_Click FillConnectionDetailsBox is called with the curent values of lstUnConOwnerBox and lstUnConPropBox,
      but lstUnConPropBox is first unselected a few before.
    • same goes for lstUnConPropBox_Click with lstConnOwnerBox and lstUnConOwnerBox
    • adjusting the PropId and OwnerId accoring to selections in the listboxes is not consistent.

  32. #232
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Rick,
    are there any things you need me to address before I'm off?

  33. #233
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Thanks for the lesson that clears up a lot of my not understanding how the basic things work, and I will add to my note book of thing that I need to check every so often when my memory goes!!(I didn't know most of that lesson!)

    I will check my code and see if I need all the stuff thats in the other click() codes. As a lot of the stuff was added as I was looking to solve the problem in Connected Owners.

    Well, anything that could help in making the internal calendar charge the guests during their stay. Also any quick insights into making and printing reports or where I might find type info.

    How long you get to go for?

    Thanks again

    u3rick

  34. #234
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    How long you get to go for?
    Will be home on 3/28 and then lay in coma for a few days
    So that'll be somewhere in the week following Easter.

  35. #235
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I hope you have a great trip!

    I ll save my questions till you return, could be a long list!!Lool!

    u3rick

  36. #236
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Can you post are mail a sample of a Guest-invoice.
    Thinking of using that as a template.

  37. #237
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I hope you have a great trip!
    Lots and lots of snorkeling

  38. #238
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I just edited a property in the Connection Center and it put a "Y" on the old record. Made a new record but never re-sorted the calendar correctly and the record on the Connection Center is messed up. its prop 3000004 and owner 1000004.

    If you have time before you leave take a look.

    thanks

    u3rick
    Attached Files Attached Files

  39. #239
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability


  40. #240
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    If you have any time (when not packing) take look at the attached program. See if you can find out why the Connection Center's Editing, Connecting, and Disconnecting cause the Calendar and the Owners Payable List not to updated correctly! I stepped through it and it doesn't even run the Worksheet PropertyOwners code??

    Its also causing all the right clicks and double clicks not to work without restarting Excel every time. (Which is driving me nuts!!)

    Also I think we are going to need a full sheet table for tblPropertyAvailability as it needs to be deleted or Archived_YN and thats hard to do on that Tables sheet. Your thoughts?

    Don't get sun burned!!

    Thanks

    u3rick
    Attached Files Attached Files

  41. #241
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Will this do?
    Actually I was thinking of a sample of the invoice like you send to a guest.
    Idea is to have such template as a sheet and filling that from the tables.
    Then saving if as an pdf to a folder.
    And finally from that folder mailing the pfd-invoices to the guests.

  42. #242
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I just edited a property in the Connection Center and it put a "Y" on the old record. Made a new record but never re-sorted the calendar correctly and the record on the Connection Center is messed up. its prop 3000004 and owner 1000004.
    The Connect-button saves the connection and details to PropertyOwners table. But reading the connection details is done from POConnected table.
    Adjusted FillConnectionDetailsBox the read details from PropertyOwners table.
    As far as I can see this now works OK.

  43. #243
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Actually I was thinking of a sample of the invoice like you send to a guest.
    Idea is to have such template as a sheet and filling that from the tables.
    Then saving if as an pdf to a folder.
    And finally from that folder mailing the pfd-invoices to the guests.
    I see, but Vacationville does not send invoices to the guests. It is just a accounting posting. So, I don't have a templet.

    Thanks

    u3rick

  44. #244
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Looks like we're mixing up versions again. I'm working in ES_Reserv_MgmtSys_Step7Test_v1.0.0.
    Made the adjustments for the connection details in there (with addition to filename).
    Now looking into issue from yr post #240 also in ES_Reserv_MgmtSys_Step7Test_v1.0.0.

  45. #245
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    i think i can fix everything from your post #242, same problem!

  46. #246
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I think we are going to need a full sheet table for tblPropertyAvailability as it needs to be deleted or Archived_YN and thats hard to do on that Tables sheet. Your thoughts?
    I think I am good just need input on changing The PropertyAvailability table?

    Thanks

    u3rick

  47. #247
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    The difference in 2.0 version is it has the POConnect table removed. I thought it might be causing the sort problem. Also wanted to see if the ConnectionCenter would work without it and it did. It feeds the details direct from the tblPropetyOwners. I had thought list boxes could do that they need to be in order, but that test proved me wrong!

    u3rick

  48. #248
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Adjusted FillConnectionDetailsBox the read details from PropertyOwners table.
    Is that all you did? Because in 2.0 I change to using the PropertyOwners table, but still have sorting problem?Hmmmm!

    u3rick

  49. #249
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    As to post #240:
    In sub AddEditDeleteOwnerPropRelationship
    • Added Application.EnableEvenst=True before the last change to table PropertyOwners in order to have the Worksheet_Change event of sheet PropertyOwners sheet be fired which adjusts the number of rows in the Calendar and sort the PropertyOwners table
    • Disabled changing POLastModBy because that column no longer exists.
    • In the Edit section added a line to set the old record's POArchived_YN column to "Y"

  50. #250
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    but still have sorting problem?Hmmmm!
    Propbably solved with last post

  51. #251
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Thanks we were sending messages at the same time!
    I feel tense as the clock is ticking down!!Lool!

  52. #252
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Thanks we were sending messages at the same time!
    I feel tense as the clock is ticking down!!Lool!

  53. #253
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    You would think I would remember that firing order stuff:roll eyes:

    Thanks!

  54. #254
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    So the worksheet code events only happen when Application.EnableEvents = True. Hmmmm this is slowly sinking in!

  55. #255
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I can't imagine what the version and step #'s will be by easter!?

  56. #256
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I am assuming that one project ahead is to delete all columns in all tables that read LastModBy and LastModDate. Then make sure that they have xxArchived_YN. as a result all filters will need to look for Archived_YN to = "N" first. unless looking for Archived files then it would be ="Y"


    ,

  57. #257
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I think the Disconnect Button needs to be deemphasized if the PropertyOwner has blocked dates or an active stay? That way no chance to disconnect a property with files stuck in those tables?

    Its 9:00 am here so thats my last question till Easter!

    u3rick

  58. #258
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    So the worksheet code events only happen when Application.EnableEvents = True. Hmmmm this is slowly sinking in!
    Yes, Application.EnableEvents only affects worksheet events.

  59. #259
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I am assuming that one project ahead is to delete all columns in all tables that read LastModBy and LastModDate. Then make sure that they have xxArchived_YN. as a result all filters will need to look for Archived_YN to = "N" first. unless looking for Archived files then it would be ="Y"
    Check
    I think the Disconnect Button needs to be deemphasized if the PropertyOwner has blocked dates or an active stay? That way no chance to disconnect a property with files stuck in those tables?
    Check, but if with "deamphasized" you mean "disabled".

  60. #260
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Check, but if with "deamphasized" you mean "disabled".
    Yes, Just so the user goes back and takes care of things before disconnecting!

  61. #261
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I think we are going to need a full sheet table for tblPropertyAvailability as it needs to be deleted or Archived_YN and thats hard to do on that Tables sheet. Your thoughts?
    You may just add Archived_YN, CreatedBy and CreateDate to the existing table.
    Not necessary to move it to a separate sheet, but if you think that's more convenient for you then that's fine.
    But, if you move that table to another sheet, remember to adjest the references to that table in the code. You need to change the sheetname in the set statement defining the table object.

  62. #262
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Well, anything that could help in making the internal calendar charge the guests during their stay. Also any quick insights into making and printing reports or where I might find type info.
    Mixed up the Guest charging from the Calendar and printing reports. Really need this vacation

    My thoughts so far (no time left to make up demo):
    Charging Guests from the Calendar
    • From the sub BookGuestStay
      • Generate recurring transactions for each month of the booked stay
      • Summarize total amount invoiced in a new sheet Guest Receivables
    • Upon date change (may be on opening the workbook or just by clicking a button)
      • Summarize total amounts due for each Guest in the new sheet Guest Receivables
    • Upon booking a GuestTrans
      • Summarize payments/refunds for each Guest in the new sheet Guest Receivables

    Making and printing reports
    • Best is to have sheets making up a report in the layout you want to print it.
      You can have the data cells filled by a formula in it or you can have some code filling the cells
    • When printing a report you can
      • Directly print the report sheet or
      • Copy the report sheet to a new (temporary workbook) and save that workbook as a pdf-file
        By doing so you can build a history of reports. The temporary workbook can be closed without saving after saving the pdf.
      I'd recommend the second approach.

  63. #263
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Thanks for all the questions answered today!! I know that you had lots to do!

    Have a great trip!!

    Until next time!

    u3rick
    Last edited by u3rick; 03-06-2016 at 05:37 PM.

  64. #264
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie signing off

  65. #265
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Have fun, but be careful its a tough world we live in!!

  66. #266
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    One last-minute question:
    What precisely is the difference between a GuestStay coming in from Lodgix and one made thru the Calendar and
    what precisely is the difference between a transaction coming in from Quickbooks and one made thru GuestTrans in the VV system?

    Yes, everything is set and ready. Now I'm bored.
    Last edited by Tsjallie; 03-08-2016 at 04:19 PM.

  67. #267
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    What precisely is the difference between a GuestStay coming in from Lodgix and one made thru the Calendar
    Well the GuestStay coming from Lodgix are only going to use OwnerTrans side of VV system, because all guest trans are handle in Lodgix (other than the Journal posting).

    what precisely is the difference between a transaction coming in from Quickbooks and one made thru GuestTrans in the VV system
    Not sure how much will come from QB's most will be sent to QB's. I think what we send to QB's will be the same from Lodgix or VV system.

    If your needing stuff to ponder check my post on forum for help on DCount (Don't laugh that I didn't make it 24hrs without needing help) and I could really use a templet on how we filter everything for Archived_YN ="N" for Current and "Y" for Archived. It has to be used everywhere I am discovering.

    Thanks!!
    Have a great day!

    u3rick

  68. #268
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    That one with the DCount takes time to figure out, but will ponder on it while floating on warm waters

  69. #269
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    That one with the DCount takes time to figure out, but will ponder on it while floating on warm waters
    Guess thats why no one has helped!

    Don't forget to drink many beers!!

  70. #270
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    When you get cranking after your resting period, here is a project. Goto the calendar and make booking pick Book a Present or Past Guest's Stay and when the calculator comes up just click continue then book in the frmStaysActivity. Then the fun begins Getting errors that I don't understand?

    Hope you had a great trip!

    The file is in the dropbox its to big for attaching here, sorry!

    UpDate: I have solved the problem, not sure why its so slow, so still take a look!

    Latest update: Its working better i am posting a lot of data so, run it and see what you think?
    Last edited by u3rick; 03-28-2016 at 02:14 AM.

  71. #271
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Forgot I have protected the workbook Password is SEA0916!

    Here is a slightly striped version for people who are following the project
    Attached Files Attached Files

  72. #272
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Back home again after a great journey, but still not fully arrived in the land of the living
    Will try to dig into this again. Something with Excel I believe

  73. #273
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Wow! You've been working your heart out I see.
    I don't think it's that slow, but I'm sure that can be improved still.

    One remark though (for now). When you bring up the property form from the Calendar and select Availability there's an error.
    That's because you filter on field 10 where the Archived_YN column is field 9.

  74. #274
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Welcome back!

    Is that using the above attached version or the Dropbox version? I think I have it working on Dropbox version, let me know?

  75. #275
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    When I add the filter line in red I get this error. The table filters correctly, but won't load into the listbox?

    Screen Shot 2016-03-30 at 7.48.06 AM.png


    Please Login or Register  to view this content.

    Thanks

  76. #276
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Is that using the above attached version or the Dropbox version?
    I used the Dropbox version.

  77. #277
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    When I add the filter line in red I get this error
    Rng may produce a non-consecutive range when filtered on "* paid". So you need to sort the table first on the filter-criteria.
    Rowsource must be a consecutive range of cells.

  78. #278
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Changed the filter from 10 to 9 ...thanks

  79. #279
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Can't find anyway I know of to make it work? When you filter the table with both filters it looks correct, just won't load in listbox!?

    UpDate: Change the sort a bit and found as long as the guest had only one booking it worked fine but the one I was testing had two. So that could happen (guest do rent more than one unit). Guess I need to hold history until a Stay is clicked.?

    I will see what issues that causes!
    Last edited by u3rick; 03-30-2016 at 05:49 PM.

  80. #280
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Rt click on an existing Stay and checkout how it works, then check code and let me know what I need to change or add!

    I am changing all code as follows (Is this what you intended?)

    From this;
    Please Login or Register  to view this content.
    To this;
    Please Login or Register  to view this content.
    When doing this it makes you get rid go the;

    Please Login or Register  to view this content.
    ??
    Thanks

  81. #281
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Looks OK to me.

  82. #282
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I am having a problem in with;

    Please Login or Register  to view this content.
    Changed above code and now get this error

    Screen Shot 2016-03-31 at 9.11.26 AM.png

  83. #283
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    As the error says the variable (object) tblPropertyOwners does not exist.
    You can either assign the object Worksheets("PropertyOwners").ListObjects("tblPropertyOwners") to the variable(object) tblPropertyOwners (with Set).
    Or replace tblPropertyOwners in the CountIfs by Worksheets("PropertyOwners").ListObjects("tblPropertyOwners").

  84. #284
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Ah

    I am going with
    replace tblPropertyOwners in the CountIfs by Worksheets("PropertyOwners").ListObjects("tblPropertyOwners")

  85. #285
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Forget that advice. Like I said, I'm not quite returned to the land of the living.
    Just remove tblPropertyOwners form the CountIfs-statement. The dot in fornt of ListColumns tells vba to refer to the object in the With-statement.
    Please Login or Register  to view this content.

  86. #286
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    ok sound good!

    I am that way all the time

  87. #287
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I did something to cause the filtering to return the Y(DeletedGroup) to the Unconnected Owners and the Unconnected Properties, but I don't see it. Here is the unconnected owners code!

    Please Login or Register  to view this content.
    It worked a while back not sure what changed!

    Thanks

  88. #288
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I am out of dropbox if you want to copy latest version

  89. #289
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I fixed it and not sure why, but it was very particular about where the
    Please Login or Register  to view this content.
    and the
    Please Login or Register  to view this content.
    went! Also, when I copied it I did it with both Subs using OwnerId. Where the unconnected property sub needed PropertyId!:
    Last edited by u3rick; 03-31-2016 at 06:31 PM.

  90. #290
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Completed code remodel and I think everything still works. Still have lots to add but nice to have everything somewhat the same and working at this point. Check it out and see what you think?

    Its to big to attach here so latest version is in the Dropbox.

    Thanks

  91. #291
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Hi, just curious, did you do anything about restoring Excel after the application closes?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  92. #292
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Keebeliah

    I turned off the part that takes the program to full screen. I have a big screen and it makes it to big, but I have not added code to return Excel to it original state.

    Can you resend that code and I will put it in as I am trying to get as much into the prototype as possible.

    Thanks

  93. #293
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I'va packed the vba module in attached zip file.
    the GP stand for General Purpose
    Attached Files Attached Files

  94. #294
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Thank you I will take a look!

  95. #295
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I'va packed the vba module in attached zip file
    I would expect such a routine to store the settings which are current at the time the workbook is opened and restore those settings when it's closed again.
    Can you make something like that?

  96. #296
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I am looking for help on this task I am working on. I have a form that has 3 list boxes that feed a detail section at the bottom of the form(below). Depending on which list box you click different buttons appear. One of the buttons is a disconnect button. It appears when the Owners and Properties are all ready connected and click on. Here is the task I want to accomplish. I want the disconnect button to be disabled if the Property has any bookings, stays or dates block (the disconnect button is only available when clicking in the Connected Owners Box). This will give the user a chance to still edit the file, but not disconnect it until there are no stays, bookings, or blocked dates on the calendar. I have tried a DCount in my sub that I have no idea how to code or work, and I am not sure it even works with Excel? Maybe there is a better way to see if the propertyId exists in the tblPropertyAvailability and or tblGuestStays?
    The need for something like this comes up in a few different places. When you delete something and it should not be completed if other things have not been finished or deleted? Any ideas??

    Thanks

  97. #297
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    The need for something like this comes up in a few different places. When you delete something and it should not be completed if other things have not been finished or deleted? Any ideas??
    I think this is about the referential integrity thing of which I uploaded a demo lately? This could also affect the enablement of buttons.

  98. #298
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I re-visited the referential integrity demo. (btw: it runs on my mac version and thats strange because mac doesn't run forms!?) anyway it works great at deleting everything or undeleting everything as I believe you designed it too.

    I was referring to the fact that I can currently delete a unit, owner, connection or guest and all could have an active stay in progress. Now I would not do that, but it could happen. So I was thinking that the delete button should check and see if there are active stay before it comes up. In researching a bite I saw that the DCount could just check for a number and could tell if it was there! Then if it was there that info would shut the button off.

    Now you may be able to do that in the referential integrity demo and I just missed it !Lool!

    Thanks

  99. #299
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    While you were gone, I realized that some stays have no end date. How can those stays extend with the calendar each month? Vacationville has 3 or 4 that fall into that category they are ongoing and should never show as vacant on the Calendar?

    Thoughts?

    Thanks

  100. #300
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I have reset the open full window thing!

    I am working on my laptop and it works well with that size screen! I note my forms are a little big can they be zoomed down slightly?

    Also, I have fixed the Notifybox and its working on my laptop now too!

    Thanks

  101. #301
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Does your Excel program show times where it say ES program is not responding? It does that on both my computers, but they both run windows 10 and the latest versions of Excel 2016?

    Thanks

  102. #302
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    By the way its really nice to have you back for all these questions that I have going in and out of my head all the time!!

    Thanks for your help!!

  103. #303
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Does your Excel program show times where it say ES program is not responding? It does that on both my computers, but they both run windows 10 and the latest versions of Excel 2016?
    Haven't noticed that yet. Still on Win7 and Office2010.

  104. #304
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I note my forms are a little big can they be zoomed down slightly?
    I notice that sometimes the forms are bigger than my screen and not showing all buttons.
    I think indeed it would be better to size the forms for a average screen size, say 17"

  105. #305
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability


  106. #306
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Question how does the user close and save the workbook, just by clicking the screen box in the ribbon, or do we need buttons?

    (When in full screen)
    Last edited by u3rick; 04-03-2016 at 08:08 AM.

  107. #307
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    How can those stays extend with the calendar each month? Vacationville has 3 or 4 that fall into that category they are ongoing and should never show as vacant on the Calendar?
    If you enter this formula in the DateOut column of the table GuestStays then the stay will extend with the Calandar.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You then also need to have a CheckBox on the booking form to indicate it's a perpetual stay.
    When checking this box the date from the formula would go into the MoveOut textbox and when saving the stay you would need to check if the Checkbox is set on and if so move the formula to the DateOutColumn in the GuestStays table. Remember to use the .formula prperty for the column to get the formula in there iso the value.

  108. #308
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I will get back to work today and see if I can make this work!

    Thanks

  109. #309
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    That's VB, not VBA. VBA in itself doesn't allow you to resize a userform. You would need to use the Windows API for that.
    Just pick a usefull size. Bare in mind that a userform which doesn't fit a 17" or even a 15" screen is probably over crowded with data.

  110. #310
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Ok, just checking!

  111. #311
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Question how does the user close and save the workbook, just by clicking the screen box in the ribbon, or do we need buttons?
    You can make the workbook automatically be saved when the user closes the workbook or you can leave that up to the user.
    No need for extra buttons.

  112. #312
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    You can make the workbook automatically be saved when the user closes the workbook
    Is that done with the
    Please Login or Register  to view this content.
    in ThisWorkbook?

    I think you don't like buttons!:roll eyes:Lool!

  113. #313
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I was going to replace some code in the Sheets. Just want to have you to check and make sure it will be ok!

    I changed this:

    Please Login or Register  to view this content.
    To This:

    Please Login or Register  to view this content.
    I changed the way the Dim's are listed just because it a little easer for me to see what going on. I like the way you do it takes less room.

    Thanks

  114. #314
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Is there a way to open the program to a zoom size that fits a 15" laptop screen, but keeps the program in those borders no full screen? (You can do it after it opens by going to Windows and clicking Zoom)

    Is there a way to have a home page as the only one that shows in tabs? It would have buttons for Calendar and Guest Payables list sheets and others that may be added. It would have dashes board features that would show a a list of over due guests and a list of vacant units? Could also have a button for bring up the ReferentialIntegrity for data maintenance?

    Thanks

  115. #315
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Since I change code to our templet "With" Picking up following error when checking Availability on Calendar.

    Screen Shot 2016-04-04 at 10.38.47 AM.png

    Screen Shot 2016-04-04 at 10.39.03 AM.png

    Please Login or Register  to view this content.
    Thanks

  116. #316
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    To save the workbook without asking add this code in the ThisWorkbook module.
    Please Login or Register  to view this content.

  117. #317
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    You're no longer setting the tblPropertyOwners and tblCalendar objects to the resp. tables.
    So using these objects will give an error (variable not declared).

  118. #318
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    To post #314:
    When suggesting to limit the screensize to fit a 15" screen I was referring to userform. You can just set the size of the forms to - say - 900 x 520 (wxh) and that'll be ok.
    As far as sheets are concerned I would show the Calandar fullscreen, but other sheets depend on there data. Nice would be to see all columns, but that could result in very small (unreadable) text or very big text. You can set an accurate zoom factor for a sheet with ActiveWindow.Zoom which you can put in the event worksheet_activate()

  119. #319
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Ok, Thanks!

    You can set an accurate zoom factor for a sheet with ActiveWindow.Zoom which you can put in the event worksheet_activate()
    Do you need to put a size or will it just make it a window that fits the size screen being used?

    Thanks

  120. #320
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    You're no longer setting the tblPropertyOwners and tblCalendar objects to the resp. tables.
    So using these objects will give an error (variable not declared).
    But error is

    Screen Shot 2016-04-04 at 10.39.03 AM.png

    Do I NEED TO CHANGE THE HOLE LINE?

    ??

  121. #321
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    The End With belonging to .DatabodyRange should be placed before the line counting the NumOfProps as DatabodyRange is used in that statement.
    Please Login or Register  to view this content.

  122. #322
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Do you need to put a size or will it just make it a window that fits the size screen being used?
    To set a sheet to fit the screensize use
    Please Login or Register  to view this content.
    Than you can use
    Please Login or Register  to view this content.
    to set the zoomsize to 75% or any other % which looks ok.
    This doesn't change the window size but just the number of columns and row you can see.
    You can put the ActiveWindow.Zoom command in a Worksheet_Activate() procedure to have a zoomsize specific for a sheet.

  123. #323
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I tried many things but never thought to try that!

    Thanks

  124. #324
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Made it to here but it lost me again!

    Screen Shot 2016-04-05 at 7.40.30 AM.png

    Please Login or Register  to view this content.
    Sorry trying to understand this but its hard to understand!

    Does it need a With .DatabodyRange and End With?
    Last edited by u3rick; 04-05-2016 at 10:46 AM.

  125. #325
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Update:

    I have all the form's layouts and colors set. I still need to coordinate when buttons and chk-boxes appear. I am still working on getting all the code in a somewhat organized state. I still have a few code errors coming up that we are working on currently. I will be moving my attention to finishing the recurring system and then a few reports that I can post to QB's. This is mostly for the extended Stay part of the system, so I can be using it as we work on QB's and accounting, etc.

    Can you think of anything I am missing for this 1st part?

    As always thank you so much for your expert help!!

  126. #326
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    When the Calendar's current date moves past the property blocks in the tblPropertyAvailability do we need to make a way that the blocks go to "Y" after the month ends?

  127. #327
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    When you have time can you check and help me with my home page menu code, so I can click on the name and bring up the table or form?

    And I am always getting this not responding message will and you said not a problem for you can you check the latest version, and see if thats still true?

    I am working on another project for a few hours so I have everything closed.

    Thanks

  128. #328
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    What the problem in post #324? Code seems OK. What Property do I need to reconstruct the problem?

    I like the Home page you're making

  129. #329
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I am working on another project for a few hours so I have everything closed.
    Getting a message from NotifyBox that the file is checked-out by "someone else"

  130. #330
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Just try to Block a property with xy in front and it will happen!

  131. #331
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Don't even have Excel open!?

  132. #332
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Can you open it again, change something trivial and save it.

  133. #333
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    should be ok I rebooted last night and the notifybox didn't reboot! fixed now!

  134. #334
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Yep. It's OK again.

  135. #335
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    When you have time can you check and help me with my home page menu code, so I can click on the name and bring up the table or form?
    Better use textboxes iso cells. You can attach a macro to these textboxes activating a sheet or showing a form based on the text in the textbox.
    BTW, how are you planning to return to the homepage when in an other sheet?

  136. #336
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    BTW, how are you planning to return to the homepage when in an other sheet?
    Plan is to link Logo to Home and The home tab must be visible as the one unhidden tab!

    Better use textboxes iso cells.
    Translate or example please!

  137. #337
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Plan is to link Logo to Home and The home tab must be visible as the one unhidden tab!
    Brilliant! And yes, you cannot hide all sheets. At least one tab has to be visible. I think the Home tab is a obvious candidate for that?

    Will post an example with textboxes iso cells tomorrow.

  138. #338
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    ok thanks

  139. #339
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Uploaded a new version: ES_Reserv_MgmtSys_Step8_v2.0.5 with navigation

    Added textboxes to the Homepage and assigned the macro HomeButtonClick (which is in the mdlHomePage) to all the textboxes
    The macro activates a sheet or userform depending on the name of the textbox clicked.
    To determine the name of the clicked textbox Application.Caller is used.

    Also hidden the sheettabs (not the sheets).
    In order to be able to activate a sheet, it must be visible.
    Notice that when a sheet is visible but the sheet tabs are hidden, you can still jump to that sheet with [Ctrl]+[PgUp] or [Ctrl]+[PgDn].
    If you want to avoid that you need the hide the sheets, but then the HomeButtonClick-macro needs to unhide the sheet before it can activate it. But the macro cannot hide it again. That has to be done in the sheet's Worksheet_Deactivate() procedure.
    So - for now - the calendar and the ownerPayables sheet are kept visible, but the tabs don't show.

    I was not sure what userforms to use. So change them as needed.
    Do notice that some userforms I used need parameters when first shown.
    For now they are just loaded, but for example you may have to generate a new PropertyId or new OwnerId and pushing it to the userform before showing the form.
    And probably you'll come accross more of these things (I noticed that the GuestInfo form isn't populated when a Guestid is selected).

    Finally - just for layout - in Thisworkbook_Open() I disabled the vertical scrollbar. That applies to all sheets, but can be changed for each sheet using the sheet's Worksheet_activate() procedure and worksheet_deactivate() procedure.
    And - on the homepage - all cells are locked. So when the workbook is protected, no cells on the homepage can be selected and the only thing that can be done there is clicking the txtboxes and the lists.

  140. #340
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I noticed that you have the workbook now being automatically saved.
    That's a risk while still developing the workbook as this may save unwanted changes.
    Better disable that for the time being.

  141. #341
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    That works very smooth!

    So, if I want no scroll bars on the homepage. I need to set up the homepage size to fit a 15" laptop screen and then hide both scroll bars in Thisworkbook_Open(). Then adjust the other sheets as needed, OwnerPayables need vertical only and the rest need both. The individual sheets are done in Worksheet_Activate()?

    Thanks so much!!

  142. #342
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Ok good idea!

    Btw: I think that we should have a save at the end of each of the SaveEditDelete Subs as well. This would minimize the chances of lose data with a crash or long periods of use without a user closes?

  143. #343
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I noticed that you have the workbook now being automatically saved.
    That's a risk while still developing the workbook as this may save unwanted changes.
    Better disable that for the time being.
    I have commented the 2 lines out should be safe now!

  144. #344
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I need to set up the homepage size to fit a 15" laptop screen
    That only applies to userforms. Sheets you can just set to fullscreen and then pick a nice zoom percentage.

  145. #345
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    The individual sheets are done in Worksheet_Activate()?
    The zoom percentage and visibility of scrollbars can be set for individual sheets in their Worksheet_Activate() procedures.

  146. #346
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I think that we should have a save at the end of each of the SaveEditDelete Subs as well. This would minimize the chances of lose data with a crash or long periods of use without a user closes?
    May be, but I think that's one of the last things to implement. Also you need to be carefull with that as you want prevent having saved only part of a transaction when a crash occurs. I also wonder if this is really necessary.

  147. #347
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Did you look at the error when blocking an xy unit like xy JL 1001?

  148. #348
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I had to turn the tabs back on, because with the programs I am using to run windows, I can't use that key codes it just toggles between full and zoom screens!

    Btw I am out of the program for a while!
    Last edited by u3rick; 04-06-2016 at 11:03 AM.

  149. #349
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Need help in getting individual sheet scroll bars up and woking anything i try brings error.

    Also want no scrolling on homepage from bars, mouse or pad on laptop?

    Thanks

  150. #350
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Will go thru some things tonight while you're out.
    Will also look at that error.

  151. #351
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    As to the error from post #324 when blocking a property.
    You're filtering on the string "PropId" iso the variable PropId
    Please Login or Register  to view this content.
    should be
    Please Login or Register  to view this content.
    So, what have you got to say for yourself

  152. #352
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Made some changes for the navigation and scrolling:
    Worksheet Home
    --------------------------------------------------------------------------
    Please Login or Register  to view this content.
    =================================================
    Worksheet Tsjallie_Calendar
    --------------------------------------------------------------------------
    Please Login or Register  to view this content.
    ==================================================
    Added a macro ToggleFullScreen to mdlHomepage and assign the hotkey [Ctrl]+[s] to it.
    Makes debugging much easier.

  153. #353
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    So, what have you got to say for yourself
    I am never surprised at my ability to not know things that are that easy!!

  154. #354
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Didn't get any emails from forum and have been out all day. So I will catch up this afternoon. Then I will have more questions as normal.

    I have noticed after the screen goes to full if you goto Window and click there is a Zoom and if you click it the full screen goes to an adjustable window and it stays in the non-ribbon format. Is there anyway to the program open into that kind of window? (Not a big deal just wondering!)

    .AutoFilter Field:=1, Criteria1:="PropId"
    So this is iso "xx" this is not xx ? hmmmm!

    Thanks!

  155. #355
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Also you need to be carefull with that as you want prevent having saved only part of a transaction when a crash occurs. I also wonder if this is really necessary.
    Maybe I don't understand? I think in a data base when you record a line of data it is there and no need to save for the user. Is it the same for excel, if so wouldn't need to run save? I know in Lodgix we never save, except when entering owner and unit info.

  156. #356
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I have noticed after the screen goes to full if you goto Window and click there is a Zoom and if you click it the full screen goes to an adjustable window and it stays in the non-ribbon format. Is there anyway to the program open into that kind of window? (Not a big deal just wondering!)
    Disabled the minimize and maximize buttons to prevent users from minimizing or maximizing the workbook (or rather Excel).
    - Added some Windows stuff to do that (see mdlWinStuff)
    - Added calls to ShowMinMax macro in ThisWorkbook.Workbook_Open() and ThisWorkbook.Workbook_BeforeClose() to hide to buttons and show again

    Added a workaround to prevent users ruining the homepage by zooming with mousewheel while pressing [Ctrl].
    Workaround consist of repositioning the cursor in cell A1 (hidden) of the Homepage every 2 seconds.
    - Added macro ResetWindow to mdlHomePage
    This macro checks the public variable ResetOn:
    - if True repositions the cursor and sets the timer again
    - if False stops the timer
    - Added call to ResetWindow macro in Worksheet_Activate() procedure of Homepage to start timed resetting
    - Added call to ResetWindow macro in Worksheet_Deactivate() procedure of Homepage to stop timed resetting
    - Activate Homepage in ThisWorkbook.Workbook_Open() to trigger the Worksheet_Activate() procedure
    - Added cancellation of timer in ThisWorkbook.Workbook_BeforeClose() procedure. Workbook cannot be closed when a timer is running.

    Uploaded a new version.

  157. #357
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Disregard my new name and version, ("new full name is Extend Stay & Vacation Management System, (ES_VMS_v1.0.xlxm"!) I will checkout your new version and add my changes to it then rename! I have a list of thing I need to fix and it may take a few days, as I am house & animal setting at my daughters. As they needed to go to Hawaii for kids spring break! (They didn't even invite me!!

  158. #358
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    'Move the cursor to a hidden cell to hide the selection border (which looks ugly)
    Is that the gray?

  159. #359
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Is that the gray?
    I added a row at to top of the sheet and have hidden it.
    When going to the Homepage or resetting it the cursor is moved to cell A1 with application.goto [A1].
    In this way you don't see the active cell and its ugly black or blue box on the screen.

  160. #360
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I think in a data base when you record a line of data it is there and no need to save for the user.
    In a database (like e.g. Oracle) yes, but Excel is not a database.
    So you would have to do all the precautions yourself.
    But don't worry, we'll figure out something.

  161. #361
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I have a new name and version. Just because I can I guess!!Lool!!

    I think I have the home page working correctly and laid out the way I want. See what you think?

    I am going to make an effort tomorrow to get the perpetual guest working with the calendar. Then test the save, edit, and delete buttons on each form. I think a few of the forms are not setup for the Archived_YN system yet.

    Then I need to make up someway so users can't delete a guest, owner, or stay when an active stay exists. You could help in that area, as I don't have many ideas other than not letting the delete buttons appear if an active stay exists!

    Thanks for making the homepage work so well!

  162. #362
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Here is the latest version for those that want a look!
    Attached Files Attached Files

  163. #363
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Had a question as I was working on the perpetual stay. When a stay is completed and doesn't show on the calendar anymore is it just left that way? I was thinking that it might need to be designated completed or will that mess up The Archive_YN? Lodgix shows them as complete once the end date has past in their vacation system.

    What do you think? I am all for the simplest that works best!

    If you get a chance try to alter the stay in x JL 205 having some problems(Dropbox version)!

    Thanks
    Last edited by u3rick; 04-10-2016 at 10:01 AM.

  164. #364
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I have exhausted my talents on trying to get the change(Alter) the stay Ending Date, including the recurring trans end date.

    First problem is the stay won't show back on the calendar!

    Nothing seems to work with resetting the recurring Trans end date. You may need to wave the magic wand over that area!!

    Just try altering a stay in the dropbox version, there are some tabs exposed they will still need to be unlocked of course.

    Thanks (I have about 8 hrs of trying things but I am stuck!!)

  165. #365
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Had a question as I was working on the perpetual stay. When a stay is completed and doesn't show on the calendar anymore is it just left that way? I was thinking that it might need to be designated completed or will that mess up The Archive_YN? Lodgix shows them as complete once the end date has past in their vacation system.

    What do you think? I am all for the simplest that works best!
    The simplest way is doing nothing Stays just run out of the Calendar on their own. No need to adjust anything.
    It doesn't mess up the Archive_YN as that is meant to record user initiated changes and a Stay running out of the Calendar isn't a user action.

  166. #366
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Will have a look at the perpetual stay.
    I'm also working on a routine to set and restore Excel settings.
    Will be bothering you with some questions on screensizes and desired zoom settings later.
    Also figured out a way without the timer to prevent the homepage from being out of the screen when zooming. Don't like timers.

  167. #367
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Good, I am not for making any wasted work!! I waste enough as is!

  168. #368
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    If you get a chance try to alter the stay in x JL 205 having some problems
    Houston, we have a problem. Not a clue (yet) why the stay is not being refreshed.

  169. #369
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    This is not good!

  170. #370
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    This is not good!
    Noop! But it's gonna be solved!

  171. #371
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    For you who are following the development of the program we are building in this thread, here is the file that we are having problems with. This file has code that will adjust the screen size and lock sheets. The procedures to set your screen back to its original state have not been added yet. This may cause you to need to reset your Excel startup back to your normal setup?
    Attached Files Attached Files

  172. #372
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Solved the issue with changing Stays data.
    Appears that the formula in the Calendar as well as the StayInfo don't look at GSArchived_YN.
    Can I have the workbook available to make the changes to solve this.

  173. #373
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    is all yours I am out!

  174. #374
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Done!
    Here are the changes I made.
    Problem: StayInfo gives data not reflecting a changed stay data
    Reason: StayInfo query doesn't consider Archived_YN
    Change made in mdlESReserveation.HandleSelectionChange(): Inserted code to get the right GSUniqId and use that the find the current record in GuestStays table
    Please Login or Register  to view this content.
    Problem: Changing the DateOut changes the DateIn in the Calendar
    Reason: the formula in the Calendar doesn't consider Archived_YN for GuestStays.
    Change made in calendar formula (cell E4): inserted condition GSArchived_YN="N" into the formula
    Please Login or Register  to view this content.
    Also disables the RestWindow macro and so the timer, by commenting out the calls in the Worksheet_Activate() and Worksheet_Deactivate() procedures of the Homepage.
    This makes that a user can still zoom the homepade, but zooming is done from the upperleft corner. This makes that the whole page will remain visible when zoomed.
    Ideally the mousewheel would be disabled, but didn't get that to work yet.
    If you want the get back to the timed reset of the window just uncomment the forementioned calls.
    Last edited by Tsjallie; 04-12-2016 at 04:02 PM.

  175. #375
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I'm working on this routine to set application and worksheet settings when opening the workbook and restore the original settings when closing the workbook.
    For that I need to know what zoom factors you want for which worksheet with what screensize (desired zoom may be different with different screensizes).
    Can you run the attached workbook and fill out the table for me?
    Attached Files Attached Files

  176. #376
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Can you run the attached workbook and fill out the table for me?
    I will do that this afternoon!It will be waiting when you get up!

    Now I understand why I couldn't figure out the calendar problems!

    Thanks for the magic wand work!!

  177. #377
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    You still have program checked out! Need it I think to finish your workbook!?

  178. #378
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Don't know what happened, but last night the workbook was reopenen several times.
    That's an issue when you close the workbook with a timer running. Reason why I wanted to get rid of the timer.
    Don't know where the updrated version has gone. When I look at dropbox directy I see old content. When I look at it from explorer I see the current content.
    But never mind, I uploaded a new versie 1.01a.

  179. #379
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    When I went in it said you had it checked out so i just ran alter stay and it went to error and I knew it was not your new version so I didn't save and left! hmmm! the new version works good but now I am trying to hand date in recurring table. I have changed the unique Id to included the Trans Type which is a string and I get error mismatch so I am assuming I need to change all to a string but not sure how?

    Please Login or Register  to view this content.
    This is below the Change date code and it is just the first part the rest is commented out!

    Please Login or Register  to view this content.
    Errors on red line and I need to know how to change the IDs to string? I think?

    Thanks!!

  180. #380
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    RecIdx = Application.Match(RecurringGTransId & "-" & StaysId & "-" & TransType & "-N", .ListColumns("RTUniqId").DataBodyRange, 0)
    Possibly the key your searching does not exist. Then the match returns an error which is a negative number. As RecIdx as an integer it cannot hold negative numbers which will give the type mismatch.

  181. #381
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    You are so right I need to add recurring trans for all stays so it won't error when I try to change dates!! Not been my best day!! brain dead!

    Thanks

  182. #382
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Just to cheer you up a bit, here are some more observations (for now) :
    Code to be adjusted to use Archived_YN:
    - FillDateChangePage
    - cboGuestListGI_Change (tblGuests + tblGuestTrans)

    FillDateChangePage gives a type mismatch when a StaysId is not found,
    because RecIdx is an integer and the returned error is a negative number.

    Table GuestTrans refers to Stays and/or Guests not in tblGuestStays and tblGuests resp.


    Guest activity Center
    - Accounting Center can show only one Stay. What if a Guest has multiple stays?
    - Edit suggest that you can edit the data when clicking the button, but you actually save the data as in the form. Better call it "Save" and enable that button when something has changed.

    DateChange form
    - What's the role of Recurring Transactions in that form?
    - Why can only the DateOut be changed?
    - DateOut can be changed into a date prior to DateIn!

  183. #383
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    - What's the role of Recurring Transactions in that form?
    Only to add the new date to date out, so it keeps making the recurring charges and postings to the new date out.

    - Why can only the DateOut be changed?
    The move in date 99.9% of the time will already passed. If things on the front end changed we would likely cancel and make new Stay.

    - DateOut can be changed into a date prior to DateIn!
    I had noted this problem and was going to ask you the best method to stop it?

    - Accounting Center can show only one Stay. What if a Guest has multiple stays?
    I had noted this problem also and worked on it but could never get it to work with more than one Stay and from the calendar that works. But you are correct from home page it is a problem.

    I will look at the others this afternoon!

    Thanks

  184. #384
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    This might be my problem, but I like a small mouse!

    IMG_0082.JPG

    Btw: If I am not going to use recurring trans, I am assuming I need a macro that loops through the active stays. It would generate posts on the proper day for each invoice much the same as the recurring trans would have. I might Lool! need a little of your help on this step!

    Thanks

  185. #385
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    This might be my problem, but I like a small mouse!
    That's your problem, indeed.

    And yes, you would need a macro to generate a list of recurring transactions when needed.
    But I don't think it has to go through all the active stays. Rather just the relevant stays or even just the selected stay.

  186. #386
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    BTW, where's the mousewheel?

  187. #387
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    It has no wheel its the same as the pad on the Laptop up down for scroll diagonal for zoom and it is touchy!!

    Well all stays are billed on the same day (5 days before the end of the month)
    Owner credit and Management Commission are chg on the last day of each month.
    The Owner Mgmt. fee is charge to all active owners if activated is also chg on the last day of the month. General she gives the owners first 6months with no Owner Mgmt. fee.

    The first month and prorates is done at the time of the booking so it does not need to be auto.

    Since the rent is due and accounted for on the last day of the month for next months rent there is no chg during last month. (payment due march 31st is for Aprils rent)

    That pretty much covers the auto stuff for ES.

    Thanks

  188. #388
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Was trying to fix some forms in Version "a" and it won't let me move anything on the form with my mouse, never had tis problem before!!

    Screen Shot 2016-04-15 at 4.49.45 PM.png

    See what happens if you try?

    Update:I restarted the whole system both Windows, Parallels and my Mac and it went away!

    Thanks
    Last edited by u3rick; 04-16-2016 at 10:20 AM.

  189. #389
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Is this still the same original question? you so far have 388 posts on 26 pages spread over 5? months?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  190. #390
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    FDibbins

    Is this still the same original question?
    We are about halfway done with the project that deals with the question, but if you need us to start a new thread and question I am sure we can do that!

    Thanks

  191. #391
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Is this still the same original question? you so far have 388 posts on 26 pages spread over 5? months?
    Hey Ford,
    good to see your still with us. Was afraid we lost you since the last malware attack.

    And yes, it's still about the same project.
    Been thinking about this and I must say the value for the forum is questionable. The thread does contain valuable things, but just try to find'm in this heap of post.
    Not sure how to deal with this. Any suggestions?

  192. #392
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I am out if you want to bring Version "a" up to date. You can also change from "a" to one number higher, that way we will have a copy of "a" I will move to Old in DropBox.

    Thanks

  193. #393
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Quote Originally Posted by Tsjallie View Post
    Hey Ford,
    good to see your still with us. Was afraid we lost you since the last malware attack.
    Actually, that is true. I spend more time on here from work than from home, but since that attack, this domain has been blocked - so I can no longer access the forum from work...and there is little chance of haviomng the block re,oved

  194. #394
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    I am out if you want to bring Version "a" up to date. You can also change from "a" to one number higher, that way we will have a copy of "a" I will move to Old in DropBox.
    If the settings routine is OK now then I will add it to v1.0a and rename it to v1.1.
    Also I will temporarily disable the settings routine and remove the password. So they aren't in our way while developing.

  195. #395
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    Sounds like a winner, I have other questions, but will wait till you get that done before opening the flood gates!!

  196. #396
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    ....before opening the flood gates!!
    I think I'm gonna need a holiday again soon

  197. #397
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Added the settings routine and sheet to the new version v1.1.
    Introduced a public variable DevMode. If set to true (current setting) the settings routines, password protection and autosave are disabled.
    This variable is set in Workbook_Open().

    I'll have a beer while waiting for the flood

  198. #398
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Tsjallie

    I changed the Guest Activity Center a bit and the Guest list & Id combo won't work unless I chk the include Deleted box. I did something but can't figure out what for use without the chkbox? It has something todo with the if part?

    Hold on with this new version it works so you already fixed it That is fast!!

  199. #399
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2013, 2016, Mac 2016
    Posts
    629

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Better call it "Save" and enable that button when something has changed.
    Whats the best way for the save button to know something on the form has changed?

  200. #400
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Designing an Excel application for simultaneous use and for optimal maintainability

    Whats the best way for the save button to know something on the form has changed?
    Well, all objects on a form have a change_event procedure.
    You can have the Save-button disabled by default and if a change event is fired than you can enable the button in that event procedure.

+ Reply to Thread
Page 2 of 3 FirstFirst 2

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel Solver - Optimal Strategy
    By adodson in forum Excel General
    Replies: 7
    Last Post: 02-22-2015, 06:15 PM
  2. [SOLVED] simultaneous non linear excel
    By ruecel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2015, 01:28 PM
  3. Designing a Survey in Excel & VB
    By willowonyx in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-29-2011, 01:57 PM
  4. Designing a KPI Reporting app within Excel
    By broro183 in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 05:24 AM
  5. Excel files maintainability
    By cycleinmars in forum Excel General
    Replies: 2
    Last Post: 04-21-2010, 08:02 PM
  6. [SOLVED] Simultaneous Excel backgrounds....
    By Colin Hayes in forum Excel General
    Replies: 2
    Last Post: 06-01-2005, 05:05 PM
  7. [SOLVED] Excel Workbook - Simultaneous Use
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2005, 03:05 PM

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