+ Reply to Thread
Page 1 of 2 1
Results 1 to 200 of 235

Copying random columns from one sheet to another in same workbook..Problem?

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

    Copying random columns from one sheet to another in same workbook..Problem?

    Attachment 398569Hi All

    This is always challenging for us beginners. I have written some code that works and accomplish about 90% of what I need but the the last 10% is the hardest and I am stuck! So here is what I am trying to do. I have three logs (same workbook) that get copied to every time there is a new owner and unit added to the rental program. One log for owners one for units and one that is a combination of each (some owners own multiple units) The OwnerPropLog is where i attach the ownerId to the systemId and Unit Id. I know it confuses me too! These logs will be locked and hidden from the program users. That is just some background so you have an idea of what I am doing. Now the problem. I have developed some code to build a sheet with a list of owners and units that will be visible to the users. I pulled columns from the three sheets to make the Owner sheet. here is the code.

    Please Login or Register  to view this content.
    Now the problem, there is the fact that existing owners my buy additional units. When this happens there is no entry from the OwnerLog because there is no new info. That is ok because I only want the unit listed anyway. The problem is that the next entry fills the blanks cells left from the existing owner entry, because the code is looking for the first empty cell at the end of the row. My next move was to enter it by cell so I could enter a NA in the blanks but have no idea how to do that. So I am stuck and hoping for some guidance. The above code most likely is not so good so help there would also be appreciated. I included the file if you need it.

    Thanks, hope I made this so you can understand?

    u3rick
    Attached Files Attached Files
    Last edited by u3rick; 06-02-2015 at 09:33 AM. Reason: New attached file

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    The workbook you posted is loaded with personal data of the owners (your customers?).
    Please remove it asap and replace it with a sample without these personal data.

    Further I see your code is using the same object and variable for all sheets and lastrows.
    Be aware that only the last assigned value will count as the previously assigned value will be overwritten by the next assigment.

    Will take a further look at yr issue.
    Last edited by Tsjallie; 06-02-2015 at 08:29 AM.
    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 ...

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I fixed and edited the attachment. I did miss a couple columns in my hast to go to dinner last night! Most info was dummy though. I don't have a great understand of VBA basics. I have been reading and reviewing code but the above code was mostly copied from what I had that worked on other pages. Then I just kept going over and over till it did most of what I hope for. So it could be totally messed up. I assume the objects are the sheets and ranges and the variables are in the list at the top of the code starting with Dim. I have only been doing this for about 5 weeks and I do want to learn. So, thanks for your help I really appreciate it. Hopefully you can come up with something that works.

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    The list sheet i am building clears and re-copies every time there is a new unit add. Guess that is why the only overwrite issue I have is those blank cell that follow and existing owner s that buy a second unit.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Here's a workbook with the refreshing of the Owners sheet working "properly".
    Apart from not copying the Owner data when a second property is held, also the Owner/Property combination got mixed up.
    That's because the ownerPropLog holds duplicate Owner Id's when more than one property is held. And the copying
    depends on the data in OwnerLog being in the same order as in OwnerPropLog, which with duplicates will never be the case.
    It's now only is copying the Owner Id's from the OwnerPropLog sheet into the Owners sheet.
    The other columns are filled with lookup formulas looking up the data based on the Owner Id's. This to avoid the mixing up
    of Owner/Property combination when owner hold more than one property.

    However, going through your workbook it's clear that it is still very sensitive to changes.
    That is mainly caused by many hard coded cell and range references.
    That can be dealt with of course, but in the way your workbook is set up, that would take a lot of coding.

    I would strongly recommend you to reconsider the setup and make the following changes:
    - Basically the core of your application needs 3 tables:
    - One to hold the Owner data
    - One to hold the Property data
    - One to hold the Owner/Property combinations
    In the current workbook the Owner/Property combinations are spread over two tables (Owners and OwnerPropLog) and these need to
    be synchronized permanently. Integrating these two tables into one would render this need for synchronization obsolete.
    Apart from these to 3 tables you can of course have additional tables for logging changes made by users, data validation etc etc
    - You're spending a lot of code keeping track of range dimensions and finding where a range ends to insert new data.
    Using Excel tables would make that a lot easier, because Excel would do all that for you.

    I'm aware that this is just a lot of text. I'll try to make up a sample workbook the demonstrate what I mean.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I agree I will do that. I am trying to make this program similar to the companies Vacation Reservation System so they will not have to learn new ways to operate. I can see the end result of that program but have no idea the tables used to make it. Thought about using tables but didn't because lack of total understanding of the advantages. This will mean I have to totally change all code, I would guess, but better now than later. I have other sections of the program that will be a copy of this section so it needs to be as tight as possible. Many thanks for your review and help, hope you can direct me through the change over. I will start to day.

    Thanks again

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    This will mean I have to totally change all code
    I rather think you will need to delete a lot of code instead of changing it. And there is a button for that
    And yes, you is better to go through this so when you start developing the userforms you have a solid and reliable base to build on.
    Welcome to programmer's life

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Great I can do that button! I think I should mark this as solved? but still interested in see your ideas. What do you think?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I think I should mark this as solved
    Depends how you look at it.
    The problem you posted may be solved, but you're far from ready.
    So as far as I'm concerned you may leave the thread open for a while.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Ok, just didn't want to break the rules. Open it stays

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Ok, here's a revised workbook.
    Hope it won't come too much as a shock for you.
    All the code is gone, because you won't need it anymore.
    Rest assured, other code will come as soon as you're starting to bring the userform to live.

    I merged the OwnerLog and OwnerPropLog into one table PropertyOwner.

    Actually the workbook as it is now is already functional (apart from things like payments, refunds and alike):
    you can add Owners, Properties and connect Owners and Properties.

    Next things you need to do now:
    - Check if all tables have the right columns. If not just move them (cut-and-paste).
    - Start developing the userforms (the fun part).

    You can read some basic things about Excel tables here.

    BTW, thx for the rep (and I'm even not finished with you )
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Looks good! I would give you more reps but they won't let me. I am going to check the columns, but looks like most are there as far as I can remember. I have been working on tables for Guest, Stays, Payments and a combination of all three. Now I will model them after the ones you have sent me. The forms are built not sure if you looked at them. I will update them to make sure they fill in all the information that the tables require as they are now. Will let you know if I have problems then you might redirect my efforts.

    Thanks so much for your help!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    If you can checkout the form "frmUnitEntry". I made it work but I could not get it on last row. When I insert a row on a table it leaves one row of data goes below my insertion row? So I tried some code to enlarge table and I can not come to grips with the object naming?? Working in your file and I have attached it. I will keep trying!

    Thanks

    u3rick
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Found code that works for adding row at the bottom of the Tables.

    Please Login or Register  to view this content.
    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    No need to find out where you need to insert the new row.
    Using tables Excel does that job for you.
    Please Login or Register  to view this content.
    BTW, in this code is 1 column (#1 or #2) which is not in the table.
    Make sure your code is in sync with the table layouts. So better to check that before you start coding; can save you an awfull lot of work.

    I will look at the frmUnitEntry and add code to make it work.
    Then you can use that as "template" for the other forms which are more of the same.
    As I see you're picking up things pretty fast I think you caanhave this workbook up and running in no time
    Last edited by Tsjallie; 06-05-2015 at 04:56 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I am trying to make this program similar to the companies Vacation Reservation System
    Is the workbook you're building intended to replace that system or will it just be an extension of it.
    If the latter, will you be exchanging data between the system and your workbook.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Here's a new version with UnitEntry form working OK.

    Commented out the messages popping up when skipping some textboxes.
    If found that pretty annoying, but you can just remove the apostrophes if you like.

    Changed City into a textbox, because there is no list the attach to it.

    Changed State and Country to comboboxes and attached them to the related lists.

    Replaced Userform_activate procedure (fires every time a userform becomes active)
    with the Userform_initialize procedure (fires only once at loading the userform).
    Used that for setting the rowsources of the comboboxes. And that needs to be done only once.
    Alternatively you may set rowsources in the properties of the comboboxes if you like.
    Personally I find it more convenient to have all these kind of things together in the initialize procedure.

    Removed some obsolete code doing things already done elsewhere.

    And finally changed the code for adding the data to the Properties table.

    So actually I only made 2 changes that where really necessary.
    I like the way you use the change and exit events for notifying omissions (apart from the message boxes that is )
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    This program will be in addition to the Vacation Rental system. If you want to get an Idea of what that looks like goto www.vacationville.com thats the companies website.

    I will check out the file tonight. I have been working on getting all the tables added to the new version.

    I have a design question, do you think I need an accounting sheet for each Owner and each GuestStay or can that information be filtered and lookup from the payments table?

    Sorry my answer is so slow but no email came this time letting me know u had posted? Then I didn't notice we had a 2nd page lol!

    I really appreciate your help on this!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I am changing my forms over to the code you sent me and I have one problem. Putting the last two pieces of data in the row that is in the PropertyOwners table. I don't need a new row on this part (other than that should be the same) but can't seem to find the right combo. This is my last attempt at the code its the worst but tried many before just wanted you to see where i am.
    Please Login or Register  to view this content.
    Also I was wondering if I should just erase the Exit Sub in all those formatting function that you noted weren't recommended?

    As usual your code works so nice!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Will get back to you about the design. Needs some explaination for that and a little diagram.
    Champions League Final starts in half an hour and don't wonna miss that. Will post tomorrow. Ok?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Also I was wondering if I should just erase the Exit Sub in all those formatting function that you noted weren't recommended?
    Don't just erase them. Would need some more adjustments.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjalliie

    I commented them out but that let the user post blank lines to the data tables! So put them back in. Did do away with the msgs. It is so much smother that way those glaring red boxes and heading should be plenty of warning! Thanks for insight just never thought of it. I have the adding new owners and new units working I redesigned the add to PropertyOwners into one time and did all when I add the new row. Still have code you won't like feeding the UserForm That info from Owners table and property table. It is Sunday 8:14 am here and I will attach the ES Program Test Redesign_v1b


    ES ProgramTest Redesign_v1b.xlsm


    Hope you favorite won!!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjalliie

    Here is a piece that I have not included but in my plan is the home page or engine of the program as far as the use is concerned.


    ES Program Test Calendar_v1.xlsm

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Wow, I see you're making good progress!
    Not many, but a few remarks:
    • Delete GuestStays and rename Stays to GuestStays
    • GuestStays (fna Stays) is missing GuestId
    • It's recommended to put the Id's together in the left most columns of a table
    • Why this table with OwnerId's and Lastname in the Tables sheet. There is already an Owners table.
    • Risk of this is mixing up data which is already the case and you'll need to maintain data in duplicate.
    I have a design question, do you think I need an accounting sheet for each Owner and each GuestStay or can that information be filtered and lookup from the payments table?
    And I'm attaching a ppt (zipped) with some guidelines on when to create separate tables and the use of id's.
    To answer your question: I would recommend to one accounting sheet for all owners together and use filtering to select accounting record for specific owners. Some goes for the GuestStays.

    Looking thru the userforms I see an issue coming. That is when you want to display a recordset. For example Payments in frmGuestActivity.
    Don't do that with all textboxes but use a listbox instead.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Calendar looks slick!
    But better use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    for the months. So you don't need to specify the number of days in a month. Excel knows that.
    And you could make such a calendar very dynamic so it will keep itself up-to-date.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Thanks for the great info. I made the calendar before I started learning code so yes I hope to update it with your suggestions. And I will change the textboxes to listbox as I wondered about that when I made the form, but didn't know which was best. I used the following code in the Form frmNewOIAddunit. I am sure that there is a better way, what do you think?

    Please Login or Register  to view this content.
    As you can see I am using this to populate page 2 with properties info from the new unit.

    Thanks again!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Why this table with OwnerId's and Lastname in the Tables sheet. There is already an Owners table.
    Risk of this is mixing up data which is already the case and you'll need to maintain data in duplicate
    That is where the ComboBox for current owners is sorted and re-listed every time there is a new owner added. The menu1 old page is where the person that help me put it before we started working on redesign. So, I put it there while adding that form to the redesign. It is part of support for "frmOwnerIAddUnit". I can change it but don't know where to put it. Maybe you know how to do the same thing much easier?

    Sorry!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    To fill a combobox with OwnerId and Lastname using the existing Owner table you can use ths code:
    Please Login or Register  to view this content.
    Example applies to frmOwnerIAddUnit. Put the code in userform_initialize and you're done.
    After that you can remove this extra table holding OwnerId and Lastname.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Put in the code and erase all the tables Named range that dealt with old way. But get this error message at the completion of the step below?

    Screen Shot 2015-06-08 at 7.16.03 AM.png

    Screen Shot 2015-06-08 at 7.25.42 AM.png

    I have tried checking everything that I know but can't fix or find the problem. I changed the OLastname to OLastName because thats how it is on the Owners Table.

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Trying to set Tab and Focus in Multi-Page UserForm but keep getting error "Need Object".

    Please Login or Register  to view this content.
    Have lot of reading and time invested but no luck!

    BTW: With the way the new setup will work on the findOwner listbox, I won't need the sort buttons as I assume I don't want to sort the table?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Can you upload the version of the workbook giving this error. Need to take a look under the hood.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Here it is

    ES ProgramTest Redesign_v1c.xlsm

    Did some work in ChangeLog Owners no working?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Got the culprit! And it's you
    You changed the range name "Owners" into "tblOwners".
    If you change that in this line like this
    Please Login or Register  to view this content.
    and it'll work fine.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Did some work in ChangeLog Owners no working?
    What's not working?

    BTW, I would put the logging in worksheet_change events, so you don't have to repeat the code for that all over your project.
    Alternatively you could write a macro taking some parameters which you could call whereever you want to log something.
    Last edited by Tsjallie; 06-08-2015 at 04:25 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Well i did do that.... only because it keeps me from getting mix up! ... sorry!

    I thought i tried that tbl in front.... but I guess I tried it with a [#All] first in headings.

    I made a timestamp when I put that code in and the date and time works fine except Owners table the formula looks the same but it doesn't work?

    I figured that there would be a way to do something with a call and some if this then that stuff with the logs.

    How do I do a login sheet .....I guess that the next step in a logging process?

    Thanks... Have a great day or night!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Design question on The payments UserForm & Table. Should it handle Guest Payments, Owner Payments, Refunds, and Security Deposits or should they be separate tables? From an accounting standpoint I would want them separated, but not sure from a programing stand point?

    Actually took time away from my computer yesterday and played golf (bad golf) but the weather was great and had fun...but now I feel behind!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    About Payments:
    Business perspective goes before programming perspective.
    From both perspectives I would separate Owner and Guest transactions, but have all kinds of financial transactions together in one table.
    So you would get one OwnerFinance table with dues, payments, refunds etc and one GuestFinance table with dues, payments, refund etc

    About Login form
    Whether you need a login form or not depends on your purpose for it.
    Remember that users are already logged in to their system/network and you would need to maintain a user/password table in the workbook.
    It would also for users be possible to exchange userids/passwords.
    Better is to collect the userid from the system with Environ$("Username") which you can use to set a user's autorization and use the id in the changelog.
    If you want to set autorizations it's best to define roles (like admin, power user, user, guest user or whatever needed) and a Users table in which you can assign roles to them.
    I will post a example of such an autorization matrix, user table and some sample code later.
    If it's just for the changelog no extra table needed.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    So many question!! sorry! Should credit card data be separate hidden table or part of the Tables sheet with just the acct# hidden except last four digits? Trying to finalize form and table for payments.

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    What are yr company rules on that point. Let them be decisive.
    I think the financial tables should be hidden anyway. Or actually all should be. Except for the admin.
    Preferably these kind of data should only be visible for autorized users.
    Good that I'm working on this autorization demo

    And questions is what this forum is for. Keep asking them.

    BTW: after next Friday I will be away for a two weeks vacation. So you will need to park 'm for that time. Or start another thread if it's urgent.
    Last edited by Tsjallie; 06-09-2015 at 04:29 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Thanks... I am moving forward with the sheets now. Did you get a chance to look at that Multi-Page and focus problem I am having. Its very strange. Also how should I trigger the Macro for ChangeLog ....also need a little insight on how I might differentiate between the different Sheets in the If statements in that Macro.

    The vacation sounds good you are leaving on 19Th?

    I will have many questions when you get back!! lool!

    Thanks for all your helpful assistance it's much appreciated

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Funny difference between engish and dutch: we say "next Friday" where you would say "this Friday".
    Of course the only right way to say it is the dutch way So the 12th it will be.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    About Multipage
    Hmm, overlooked that one. Sorry.
    You're using the wrong object. mpgDetailOIAU is the 1st tab, not the multipage object.
    All you need is
    Please Login or Register  to view this content.
    BTW, some of the forms are really big (height). Don't fit on my screen, which makes it difficult to run 'm.
    Any chance you can make 'm smaller, say max. height 500?
    Last edited by Tsjallie; 06-10-2015 at 04:33 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Login and authorization
    I promised you a demo for setting authorizations based on the username.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Well of course and have a great vacation! I was just thinking about the form sizes yesterday, because I have two Apple ThunderBolts Screens (lots of space), Users have smaller screens. I will fix that and send you a new file soon. The new file will also include my first attempt at the Guest Transaction Table (GuestTrans & tblGuestTrans), see what you think. I didn't include any total columns in the table as I figured those would be better placed on the sheets made for the different output reports developed from the table.

    Thanks

    u3rick

    Here it is

    ES ProgramTest Redesign_v1d.xlsm
    Last edited by u3rick; 06-10-2015 at 11:10 AM. Reason: Attach new file

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    So how do I make it so the users can't just can't click on my name and have my privileges? or did I miss something?

    Check above for new File that I attached on last post for you.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    This listbox where you can choose a name is just for the demo.
    In real it wouldn't be there. In the ThisWorkbook_Open procedure you will get the username from Environ$("Username"). So a user cannot work in the workbook with an other name.
    Also no need for a login form. So no possibility for users to exchange id's and passwords. Works fine unless there are real hackers in the family.
    From the ThisWorkbook_Open procedure remove this line:
    Please Login or Register  to view this content.
    and uncomment this line:
    Please Login or Register  to view this content.
    And don't forget to enter your username in the User table on the Admin sheet!
    You can check the username Excel will read by entering the command
    Please Login or Register  to view this content.
    in the Immediate Window from the VBEditor.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    About the form
    Now they fit nicely. Must have cost you quite some hours of tedious labour

    About GuestActivity form
    I see you also replaced the textboxes for the payment in the guestactivity form by a listbox. That's much better!
    Tip: if you're linking it to the Payments table you will need to change the column order of that table so the first four columns match the columns in the listbox.

    About Payments table
    Wow. Lot of data there. Will that be entered manualy or be imported?
    GLname and GFname are not needed or they could be looked up from the the Guests table.
    Same goes for the GuestId and GPropCode, these can be lookued up in the GuestStays stable with the StayId.
    Would save some coding.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    The forms are easy to setup in anything but VBA so yes a lot of time there!

    I can also set the list boxes in order of the tables can't I?

    Well it handles several UserForms.... so there will be many blanks or NA which ever is best in each line once the program takes over and records each Transaction! That table covers most everything transaction wise. Might need MiscPayment in case guest causes damage and has to pay for it. Will add before I hook it up to Userforms.

    As far GLName etc a lookup is what i will put there... just thought it was better to have all that info available from that table? but if its better without I can change?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    About listboxes and GLname (and alike)
    I like the way you use separate tables for the list- and comboboxes.
    However from a technical perspective it is good practice to store data once and use it as many times as you need. May (or rather will) save you a lot of debugging time later.
    So having columns from a table re-appear in other tables is fine and prevents the need of nitting together data from several tables.
    Just make sure that you use lookups for the duplicates.
    For example: the GLName is already in the Guests table. So for the Payments table you'd better lookup the GLName in the Guests table with the GuestId.
    Just put the lookup-formula in the Payments table and every time you add a row to that table the formula will automatically be copied.
    Like I did for the PropertyOwners table. In that table only the columns A:E are filled with data. All the rest is coming in thru lookups.
    Same goes for the tables you use for list- and comboxes.
    However you need something extra there. If you would use a listbox table with - let's say - GuestId, Guest Lastname and Guest Firstname, you can have all the cells reference there related cell in the Guest table. But when you would add a new guest to the Guest table, that would not be automatically added the listbox table. For that you would need to add a row to that table.
    You can automate that by having the Worksheet_Change event procedure of the Guests sheet adding that new row to the listbox table.

    Yes, this a long story. I will try to upload a small example to demonstrate this later (edit: done that)
    Attached Files Attached Files
    Last edited by Tsjallie; 06-11-2015 at 05:41 AM. Reason: added demo

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    About Guest Activity form
    Have been looking into this forms and anticipated that you may have a struggle to filter the payments for the guest.
    And there are some nasty things to take into account with this.
    Added a listbox to select a Guest and did some coding to demonstrate how to do this filtering in the code module of frmGuestActivity in ComboBox1_Change(). Comments to explain are in the code.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Have a great vacation! I will look this stuff over today. Looks like you are answering my upcoming questions so I can keep moving during your vacation!

    The transaction tables for owners and guest are not finished yet just working on getting all the needed data available in the tables. I will be putting the live data in them in the next few days. That will help me finalize the columns I need as I have to make that data into reports and posting sheets. As you have showed me in your tables the use of formulas will be needed. I have not looked at that yet but plan on doing so soon. No shortage of things todo!!

    Thanks!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Where do I set focus for the second Tab and txtbox? The following code runs without errors but does nothing to the focus or Tab?

    Please Login or Register  to view this content.

    The first part seems to work ok the second part (top) must need to be in a different place, but I can't figure out where?

    Please Login or Register  to view this content.
    Also here is the latest version of program

    ES Program Redesign_v2.xlsm

    You can add a new property from Calendar table see what you think? Also maybe you can check Owners Table and see why LastUpdate is not picking up info from ChangeLog


    Thanks

    u3rick
    Last edited by u3rick; 06-11-2015 at 12:01 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Setfocus to second page:
    Please Login or Register  to view this content.
    Setfocus to first page and FName textbox:
    Please Login or Register  to view this content.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Could not find any ComboBox1_Change() or code in download ES ProgramTest Redesign_v1d.xlsm. Sorry if I missed it but looked for a while... nothing found. You may not see this till after your Vaca!

    Thanks

    u3rick
    Last edited by u3rick; 06-12-2015 at 10:27 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Select the combobox in the form (upper left) and open the code view window.
    Or do a search (select whole project option) on "combobox1_change()".
    It's really there

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Found it you forgot to put the yellow border in the ComboBox..Lool!
    looks good hope I can repeat it
    thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Ok, back in town.
    How are you getting on?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I have made some headway and would have sent it to you but my Mac went down last night so until I can get it fixed I have no way to send it. I need you to check the code out. The forms I have done work but will need some adjusting. Hope I can get it here for you soon (Maybe By Monday)

    Thanks for checking





    u3rick
    Last edited by u3rick; 06-26-2015 at 11:15 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Here is the latest version. I emailed it to another computer, but the computer does not have excel, so I can't see what I am sending! Worked on Guest Activity form and Stays form as well as GuestStays table also included your list ideas in many areas and sheets. Other changes also in Calendar added formulas to find units and status (Check Months column)


    ES Program Redesign_v2.2.xlsm


    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Think there is a problem with the file.
    Get an error about an invalid object library when opening or when running a form.
    Have been looking for solutions, but nothing works so far.

    Don't get the error on the earlier version you posted.
    Do you need the mscomctl.ocx for something?
    Last edited by Tsjallie; 06-28-2015 at 04:36 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    tsjallie

    Not sure i have a new computer just about up and running so I will post a new version that I didn't have to move around so much. Should be in the next couple hours.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I had to start with a new version of excel 2013 and the Date picker and a couple other adding are missing when I look for them? Will that effect the version I send you? try this one. I am really stuck till I can get the right additions.

    ES Program Redesign_v2.2.xlsm

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    This one's OK
    But I'm opening it on an other computer. So the problem could well be on my side. We'll see.
    Will look into it tonight.
    Are there any specific things you want me to look into?
    Last edited by Tsjallie; 06-29-2015 at 03:55 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Yes, GuestsStays sheet does not copy all formulas when adding a new line, I could not figure out why. There is a new sheet called ListGuestStaysPC that fills a combobox in the Stays form that I want to filtered and just show the vacant units that won't work (I think the sheet works but the combobox shows all units no matter). Look at Guests & Stays Activity the code all seems to work and I used mostly parts of code you made but check and see what you think. Also the frmStaysEntry is working and code needs checked. I think there are still a few things with it that may be a problem. I think I made all the lists like you suggested but you can see and let me know if they are ok. There might be more but I don't remember exactly as I have been fighting setting up this new computer and my laptop is in the shop for repairs. The laptop has all the stuff in excel that makes these forms work the new computer will not run the forms because of missing parts of excel like dtpicker and the like. I have not figure out what is missing and how to find and install it, my have to wait till the laptop is back!?

    I guess a general check under the hood is need also as you would say!

    Hope you had a great vacation.

    Many thanks for your help!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    The workbook is OK. Problem was at my end.
    On the computer giving the error I used a more recent version of mscomct2.ocx (needed for the datepicker).
    After installing and registering the version your workbook uses the error was gone.
    Took me more time than I anticipated (probably it was just too obvious)

    This might well be the same problem as you're experiencing now with the datapicker.
    You can check the version of your mscomct2.ocx like this:
    - Find the ocx in c:\windows\syswow64
    - in the right-click menu select properties
    - in the properties window select the details tab.
    - check if the productversion is 6.00.8804
    If it does and the problem persists then try following
    - register the ocx like this
    - in the Startmenu - All programs - Accessories
    - Right-click Command prompt
    - and select run-as administrator (important!!)
    - at the command prompt type: regsvr32 c:\windows\syswow64\mscomct2.ocx
    If the problem is still not gone then try the following
    - make (or renew) the reference to the ocx-file in the VB-editor
    - Open the VB-editor
    - Select Extra - References
    - Select Browse and navigate to c:\windows\syswow64 directory
    - select filetype Activex
    - find mscomct2.ocx and click Open
    - click OK in the references window

    If you don't have the right version of the ocx-file you can dowload that version here: http://www.ocxdump.com/ocxfiles/M/MSCOMCT2.OCX
    Copy it to c:\windows\syswow64 and perform the steps above to register it and make the reference.

    So now I can finally take a look into the workbook

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Yes.... I just did that last night and my new excel version is now working with the program, but the version # on the mscomct2.ocx I am using is 6.01.9816. I hope that does not mess you up in the future. That is what MS downloaded to me last night!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I don't think we will have anymore problems with the ocx-file. And if so, then that will probably be solved easily.

    Started looking at the issues you posted.
    GuestsStays sheet does not copy all formulas when adding a new line, I could not figure out why.
    Excel sometimes loses track of table definitions. These are stored "deep down" in the workbook. If you encounter these kind of things just copy the entire table and paste it back. That resets the table definition and solves these kind of problems.

    To be continued ...

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Continued ...
    There is a new sheet called ListGuestStaysPC that fills a combobox in the Stays form that I want to filtered and just show the vacant units that won't work (I think the sheet works but the combobox shows all units no matter).
    I think I don't have the most recent version of the workbook. The StaysEntry form does not have this combobox yet. So I cannot comment on this form for now.
    But from this version I can tell it won't work like you intended: the table ListGuestStaysPC looks at the Calendar (columns C and D) and takes that as-is including the sort order. That means when filtering on "Vacant" it delivers a non-continuous range of cells and so the combox will be filled with only the first continuous portion of the filtered cells. I guess we'll need to figure out an other way to fill the combobox with just the vacant properties.
    Also I noticed that the Guests column (D) in the Calendar has a formula with an unknown (for me that is) function (_xlfn.IFNA) thus giving #Name as a result. Assume you meant to use the IFERROR-function.

    To be continued ...
    Last edited by Tsjallie; 07-01-2015 at 05:37 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Continued ...
    Look at Guests & Stays Activity the code all seems to work and I used mostly parts of code you made but check and see what you think.
    Looks nice and seems to work properly.
    One suggestion though: I think payments relate to stays, but this relation is not shown. May be you should add the StaysId to the ListPymtHis table and show that in the payments combobox. When you would ever want to report on payments made for a certain property you will need to link the payments to that property. Either thru the StaysId (recommended) or (more directly) thru the PropertyId.
    Also, when you show all the stays and all the payments there is no need to make the list items selectable. In that case I would use a listbox instead of a combobox. Not a big deal, but it may be confusing for users.

    To be continued ...

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Continued ...
    I think I made all the lists like you suggested but you can see and let me know if they are ok.
    Perfect! However you need to expand these list by one row when a new owner or new guest is added. Best is to put that code when adding a record to the Owner or Guests sheet.

    To be continued ...

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Continued ...
    Other changes also in Calendar added formulas to find units and status (Check Months column)
    See my comment in post #68.
    Also it's not quite clear to me what you mean to achieve with this Calendar. Can you tell me more about it's intended functionality?

    Where are you using this datepicker?
    Last edited by Tsjallie; 07-01-2015 at 05:57 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    The calendar is like the home page it will show which units are vacant or occupied. It will have the all buttons to bring up the different forms. The calendar that the vacation rental program has, that I used as a template for this calendar, lets you click on the dates to make reservations (like a date picker). Don't think this calendar needs that feature but it could have it if possible. I have to work in town today, so I can't go over all your comments and check them out till tonight. But thanks for your review and I will give you answers tonight. The dater picker is located in the third page of the Stays form (Move in date and date out). I think I have the add line code for most list in the sheets related and I know one is all green as it had an object problem. I think I changed a name and have not found and fixed yet. As for the latest version I am not sure as my laptop is in the shop and it won't be back until next week. I will double check all of this tonight.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    The formula showing the guest last name on the calendar sheet, gives the last name of the guest, if vacant it returns an #NA. If I use the IFNA it lets me turn the #NA to "Vacant"...That was the only way I could make it work!

    On page 3 of the Stays form, that's where the cbo box is that should look for vacant units, not sure why your version doesn't have it?

    My new computer is not working very well tonight and My Guest Activity Form won't run (keep getting a error message at the filter) and I have not change anything?? frustrating!! Anyway the upper listbox has the StayId and Stay info and data. The listbox under it has the transId and all the payment data that relates to the upper listbox. all this info relates to the Unit that is picked in the cbobox. Not understanding what you mean in reply 69?

    I think I have code adding lines in each of the related worksheets, if not let me know the ones I am missing it in.

    Sorry with my Excel not running well its hard to get all the info to you I would have liked. I will keep working on it and update as I can. Hope by the weekend things will improve.

    Thanks

    u3rick
    Last edited by u3rick; 07-02-2015 at 01:10 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    If I use the IFNA it lets me turn the #NA to "Vacant"...That was the only way I could make it work!
    IFERROR is not working with you?

    Not understanding what you mean in reply 69?
    Well, I assume that the payments Guests are making will at some point in time need to be transferred to the owners of property a guest stayed in.
    If you don't have the payments and stays or properties linked, how will you be able to determine what you must transfer to the owner of that property?

    I will keep working on it and update as I can. Hope by the weekend things will improve.
    Don't hurry. I'll have another beer
    And gives me the chance to play around with the calendar.
    Last edited by Tsjallie; 07-03-2015 at 02:50 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Changed the formula to IFERROR .

    Can you send me a screen shot of where I need to add the Id to link payments and owners.

    I am still trying to get the new computer up to speed with Windows and Excel! Thats what's slowing me down hope to be closer next week. I really need the files that are on my laptop also and that will also be sometime next week!

    Enjoy your beers!!

    Thanks !!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Can you send me a screen shot of where I need to add the Id to link payments and owners.
    You might add the StaysId to the ListPymtHis table. From there with the StaysId you can link to the ListStayInfo table wich has the Property Code in it.
    And consequently with Property Code you can find the owner in the PropertyOwner table. Remember the datamodel I posted earlier?

    Looking into this it struck me that there are already a GuestStay and a GuestTrans table which seem to be twins to the ListStayInfo and ListPymtHis table.

    And playing with the datepicker took me down to memory lane. I remembered strugling which this control and the ocx-files. Finaly decided to make my own datepicker in order to get rid of this ocx-mess Microsoft is presenting us with. Forums are full of misery with these files and mostly it seems that windows updates are the culprits messing up things.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I am using those tables (ListStaysInfo, and ListPymtHis) to set the column order as need in the Listboxes. The reason is in my reading the table is only available in the column order as appears in the table. Also they needed to have a column A so I couldn't keep them in the Table sheet as a lists, thats why they show up as tables. They are using formulas as you suggested. Now you may find what I read as not true and show me a way to do different, but I did this during your vacation! So, if I have failed it won't surprise me! Just let me know how to fix and I will repair.

    Sorry

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    It's me who should say sorry. Was looking with my nose and didn't notice you're using formulas for the lists.
    Still think you're doing fine

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Hey thats good I did it ok! Btw are you going to send me a copy of your date picker? Wasted the day downloading Windows updates!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Wasted the day downloading Windows updates!
    Welcome to programmers paradise

    I will upload a demo later. Need to do some translations. Guess your Dutch will be a bit rusty
    I am also playing with you calendar and incorporating it in there too.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Here's the DatePicker demo. Should be in English for you (though a lot of code is still Dutch).
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Got the Download and having some problems. Can't tell yet if it s my excel or the file.? I will work on it more when I get home tonight and let you know. You are correct my Dutch is very very weak!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Good news got my laptop back last night and it runs like new. Need to move some files around and install a new hard drive in it tonight. Need to update the program file from the laptop to my new mini mac and things should be back to normal. I will start adding new stuff hopefully by Fri or Sat also will try date picker demo on the Laptop to see if its excel or not. I hope thing smooth out now!:roll eyes:

    More info soon.

    Have a beer or two!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Got the Download and having some problems
    It's plain Excel/VBA so should run ok. Maybe some (national) settings, but we'll sort that out. Only ran it on my Dutch Excel version.
    Have a beer or two!
    Why the rationing

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Not thinking....Drink up!!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Ran on my laptop same error (screen shots below)

    Screen Shot 2015-07-09 at 6.51.15 AM.png

    Screen Shot 2015-07-09 at 6.52.00 AM.png

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    What's the value of KnopFocus when the error occurs?
    Does the Calendar work if you turn the line the error occurs on into a comment?
    Can you run this macro and post the results from the immediate window?
    Please Login or Register  to view this content.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    What's the value of KnopFocus when the error occurs?
    When I double click on a cell the error occurs.

    Does the Calendar work if you turn the line the error occurs on into a comment?
    This is what it looks like if I comment out the error

    Screen Shot 2015-07-09 at 9.15.11 PM.png

    Can you run this macro and post the results from the immediate window?
    Screen Shot 2015-07-09 at 9.21.56 PM.png

    Screen Shot 2015-07-09 at 9.22.12 PM.png

    Hope this helps!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    OK. So it's a bit more complicated than just a (national) setting.
    The stackspace error pointed me to a (pretty fundamental) construction error causing procedures te be called recursively.
    As each call is put on the stack and the stack space is limited by memory, this stack can easily exceed the max amount of memory.

    How much memory and cpu's does your pc have onboard?

    For now I would put this datapicker aside as I need to do some serious rework on it and that shouldn't delay you.

    I believe you have a version of your workbook containing the ocx date picker. Can you upload that version.

    Hope I can get that to work with me, otherwise we would have the situation of my datepicker not working with you and your datepicker not working with me.
    That would hamper me helping you with your workbook. But than again we could well workaround that as we can well do with a less complicated solution.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    One other try though.
    This version should be more economic on your stack space.
    Don't think it will solve the other issues yet, but I hope it will not exceed the stack space and take me a step further.
    Attached Files Attached Files
    Last edited by Tsjallie; 07-12-2015 at 03:59 PM. Reason: replaced attachment

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    ES Program Redesign_v2.2.xlsm

    The calendars are used on the 3 page of the Staysform. Will test your date picker tomorrow!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Thx.
    Will test your date picker tomorrow!
    Will post another version tonight. Didn't do it right. Guess it's some of those days.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    To bad. This is what I get when I open the frmStaysEntry
    StayEntryShot.JPG
    Curious. Would expect that may be the datepicker would be left out. Not the other object

    Replaced the CalendarDemo in post #90.
    Added a messagebox which comes up when the togglebuttons in the calendar are recognized.
    If that messagebox pops up then it's clear where the problem lies.
    Last edited by Tsjallie; 07-12-2015 at 04:01 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I worked with no errors, but only January shows the whole month. Here are the screenshots.

    Screen Shot 2015-07-12 at 2.45.29 PM.png

    Screen Shot 2015-07-12 at 2.46.12 PM.png

    Screen Shot 2015-07-12 at 2.46.26 PM.png

    January also was the only month that would return a date to the cell.

    Thanks


    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Not easy to solve a problem when it cannot be reproduced. But it's for good mental training.
    But your screenshots are very helpfull. From these it looks like the day and month are swapped, which - obviously - causes trouble.
    Trying to simulate this I get the same error as you when first tried the datepicker. So that's encouraging.
    So, after all, it may indeed be just a difference between your and mine Office-implementation.
    And a lot of work. So no beers the next few days

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Wish I could be more help! Guess i could drink the beer!

    Thanks for all you do!!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Ok, I have some good news.
    The MS datepicker (the one you're using) works now on my business machine. Don't now why that is, but I'm happy with that.
    On that machine I can now see and run the StaysEntry form.
    On my own machine - where I do the forum things - however it still doesn't work.

    I suggest you continue with your datapicker and do away with mine. So we can continue with your workbook and if necessarry I can check things on my business machine.

    Where were we?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I am wondering the same thing.... on the where we are part (My fault not yours)! The computer failure as taken its toll! I will look at my version (I lost two versions to the new system I had to install but something was wrong with them anyway). I will take a good look and try to remember what I had completed that is not there anymore. Re-do those things and get refocused on the direction I am going and get back to you this weekend. I have sometime away coming up but will try to keep moving on this project.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Oh, I remember. I was playing with the your calendarsheet letting users select a period and than have it pop up the staysentry form.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Yes....that will be a big step! I have been avoiding it because it looks very hard!

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Here's an idea for the calendar.
    Take a look at the sheet Tsjallie_Calendar.
    Uses a dummy StaysEntry form, but you can pretty easily replace it with your StaysEntry form.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    That works great. I agree and by adding some of the things you listed it will be perfect! I case no one every tells you this... you are good!


    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I case no one every tells you this... you are good!
    I know

    by adding some of the things you listed it will be perfect
    Do you want me to add these or do you want to do it yourself?
    Last edited by Tsjallie; 07-17-2015 at 03:26 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    If you have time because of my schedule the next couple weeks it would be a big help, but I also want to learn some of this. I now realize that to get to your level will never happen for me!! So if its not a burden for you go for it. I really owe you many many beers!!

    Thanks

    Rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    No problem. I like to do it.
    Are there things you specially like to add to the calendar?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Well it would nice if you double click on the renter name shown on the dates that the guest activity came up. Now that the names will show on the calendar itself that column thats shows the Guest name or Vacant can go away!

    Checkout this link and you can see why I will be busy the next couple weeks! http://youtu.be/67cOTZ5yorg ...I built that and I am telling the truth! We are doing some big races the next two weeks! So thanks for helping me keep things going while I am away.

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Wow, that's going bloody fast.

    Forgot to ask:
    what's the policy on moving in and out properties. The calendar as it is now works with monthly periods, but I believe I've seen portions of months being calculated in a sheet.
    To show properties being rented/available a portions of a month I need to figure out something for that. Is there a minimum rental period? Fixed move-in and move-out days?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Vacationville is flexible on the number of months, but it has to be a minimum of one month. There is a prorate as we call it and it = all days before the end of the first month so if you move in on the 15th you pay a daily rate from the 15th to the last day of the month. The guest stay always end on the last day of the month no matter when they actually leave. those are the basic rules.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Hi Rick,
    how are the races going?

    Here's the calendar. Comments are on the Calander sheet.
    StayEntry form needs some work yet. Don't wonna cut the grass from under your feet

    BTW, hope we don't run into the same problem as with that datepicker.
    I'm pretty convinced that that's got something to do with how dates are formatted in your (US) implementation and my (Dutch) implementation of Office.
    Tried to avoid that problem by using date serialnumbers as much as possible.
    Attached Files Attached Files
    Last edited by Tsjallie; 07-26-2015 at 04:20 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    We are working on boat repairs this week, but hope to get to look at this soon (sometime this week). We had no luck this weekend in racing hope for better next week!

    Thanks again for your help!!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Going through the workbook I see you're using two identifiers for the property: PropertyId and PropertyCode.
    If they both uniquely identify a property than one could be dropped.
    For the Calendar I've been using the PropertyCode, but if these codes are not guaranteed unique, I need to switch to the PropertyId.

    Good luck next week with the races!

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Since the units can be sold to a different owner, I thought I needed a unique Id. So thats why i made up the prop id.

    Racing is going well!

    thanks

    rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Have you given up on me? I am home for a couple days....Will be looking at the Calendar you sent tonight.... sorry for the delay... so busy! But, I do need to move this project forward. Any chance this stuff will work on the new mac version of Excel anytime soon?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie


    Really like your calendar features, I have two question. How do I make a move in date in the middle of August if August has started? Second, is there anyway to make a reservation yet or is that still need to be completed in the StaysEntry form as you noted. Wanted to see the double click work to bring up GuestData form.

    Can that be moved to my calendar so the color formatting works? or is it easier to format yours. Also wondered about making the renter name show each month on the calendar and do away with the address then it would match the vacation rental calendar.

    We had some boat damage last weekend will be flying to the boat shop in Indiana to make repairs, but hope to keep some movement on this project!

    Thanks

    u3rick
    Last edited by u3rick; 08-08-2015 at 09:19 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Noticed that your FormStayEntry doesn't use tabs is it better or easier to program with out using tabs?

    Thanks

    Rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    No, I haven't given up you Just been very busy in the office lately.
    The StaysEntry form I use is just a dummy, because I can't use yours as it contains the MS datepicker. We're a bit handicapped at that point.
    And I love using tabs myself. They're very powerfull.
    Will look into the other things tomorrow or maybe monday.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Here is a screen shot of the vacation calendar in our vacation rental program. (It has a column for each day)

    Screen Shot 2015-08-09 at 8.23.50 AM.png

    I have been thinking, because of how we have move-in and rent starting any time during a month. We may need the extended stay calendar to have days as well. Much tighter though because it is only needed for the first partial month of the Stay. When I made a daily calendar it took so many column (first thing I did a few months ago), because I didn't know you could program it in VBA. So made a 40 year calendar and it ran so slow I junked that idea. But might be the answer for, as we call it, Prorated rent (Days moved in before first full month).

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Nice calendar. Not Excel (probably VB), but you can get pretty close with Excel/vba.
    Problem indeed may be performance. Is this how you want the calendar to look eventually?

    I imported your StaysEntry form from my business computer where the datepicker works and removed the datepicker boxes.
    So now I can use that with the calendar and drop this dummy form I used.

    But I now am a bit confused on where we are and where you wanna go with the workbook.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    No, it doesn't have to look like that it can look like yours or mine for that matter. The only thing I need is a way to handle the rent in the partial first month instance (Prorate rent). I was just showing you what the vacation one looked like because it had the renters name on the calendar as part of the days marking their stay. I think that would be better if its possible....(Than having that extra column where in your calendar you put the address and I have the renters name).

    The reason my first attempt with the daily calendar work so slow was I made 40 years of daily columns. Now I think we can show two years and have it programed to make a new year at the close of each year and delete the year before the last year so we are never operating more than four years. With that being said the daily thing may not be the best way to do it, but it is one way to solve the prorated problem as is call it (partial first month rent).

    I feel that we want to make your calendar work including a way to handle the prorate and the names as stated above if possible. We can bring in the color formatting later. Once the calendar is finished and forms come up as you have planned I will complete the forms (with your expert help!). That is where I see us moving too. Let me know what you think?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Actually it doesn't matter how much years the calendar would span. You will always only see a part of it.
    And what you can't see doesn't have to be there. The calendar I made is perpetual and so spans (theoretically) an indefinit number of years.
    They're just not all there. They generated based on today's date. It never needs to be (programmatically) expanded.
    But I too think a daily calendar makes thing very compliceted and offers no or very limited additional value.
    What about having a small window popup with any additional info (movein, moveout, rent, prorated or whatever you wanna see) when an occupied month is selected?

    Than having that extra column where in your calendar you put the address and I have the renters name
    Not sure what you mean.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I ment to say NOT having that extra column....sorry was in a hurry when I wrote!

    Yes... I like that idea of a box poping up.... maybe when a date is any other date than the 1st day of the month.... is entered in the move-in date??

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Rick,
    can you do me a favor and run these commands in the direct window of the VBeditor and let me know their output.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Yes I will tonight! Where do I find the direct window in VB editor I have forgot....to much boat racing!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Just press [Ctrl]-G when in the VB Editor.
    Alternatively you can select it from the View-menu.
    Oh, and it's called Immediate window in US-Excel.
    Keep mixing up US and Dutch implementations

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Here is the out come!

    Screen Shot 2015-08-12 at 9.59.24 PM.png

    Screen Shot 2015-08-12 at 10.00.59 PM.png


    Hope this helps and I did it correct!..... Noticed I only had 3 Y's so below is corrected!

    Screen Shot 2015-08-12 at 10.16.11 PM.png

    Screen Shot 2015-08-12 at 10.15.08 PM.png

    u3rick
    Last edited by u3rick; 08-13-2015 at 01:21 AM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Noticed I only had 3 Y's so below is corrected!
    Good call
    Thx for running.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Hi Rick,
    here's a sample of a calendar with a popup window with stay info.
    Unfortunately it's bloody slow That is becaus it has to go through 3 tables to gather the information shown in the window.
    So I need to make a dedicated table combining these data to speed things up. For that I also want to replace the guestid on the calendar by the staysid. So the cells in the calendar will show the StayId and the GuestName.
    I think the usefullness of this popup window highly depends on it's performance. If we can't speed it up enough I think we need to think of something else.

    I'm also uploading another version of my datepicker.
    Can you run it again and see if it works now.
    I assume the problem's got something to do with the difference in the way dates are presented in a US- and Dutch-office installation.
    To solve this it's working with the serialnumber of a date as much as possible.
    Hope it's solved now or at least going in the right direction.
    I've added a debuglog. If it's not working correctly can you switch on debugging by running the macro "DebugOnOff", run the datepicker again, save the workbook and upload it, so I can inspect the debuglog. The "DebugOnOff"-macro sets debugging on (when it's off) or off (when it's on).
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    So I need to make a dedicated table
    Oops! Already there. Needs stronger glasses I guess

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Nothing seems to work, right click or double click.... no error message either??:roll eyes: Here is the file you wanted back.

    This could all be me can't tell!!

    CalendarForm_v2.xlsm

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Nothing seems to work, right click or double click....
    That's damn frustrating! No right-click menu too???
    Will look into the debuglog. Hope to find something. Probably something too obvious to see directly.
    Hmm, seems you didn't switch on debugging.
    Can you load it again and run the macro "DebugOnOff" before running the datepicker. You can check if debugging was on when in the sheet DebugLog the Result column of the first record says "DebugLog initialized".

    Here's a faster version of the calendar.
    It's getting pretty crowded I think.
    I like the idea of having the calendar as a kind of homepage for the frontoffice people, but then it should to their information need.
    I would suggest similar homepages for accounting people, management and maybe housekeeping.
    What you think?
    Attached Files Attached Files
    Last edited by Tsjallie; 08-18-2015 at 04:08 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I double click and the calendar came up but only had a week of dates not the month the the program crashed!

    Screen Shot 2015-08-18 at 2.53.28 PM.png

    CalendarForm_v2.xlsm

    I like the idea of having the calendar as a kind of homepage for the frontoffice people, but then it should to their information need.
    I would suggest similar homepages for accounting people, management and maybe housekeeping.
    What you think?
    Yes I agree there is not a lot of housekeeping but having a home page for it would still be good!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I still can't make anything run in the ES program!! It may be something here but nothing but a run time error but didn't get number and now it won't do it again it just doesn't do anything when I click on an empty cell!!

    Sorry

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I managed to reproduce the issue. Just setting my windows language setting to US and I can see how you must be suffering
    Why didn't I come to think of this before Must ask my shrink

    It's definitely the date issue (Excel swapping days and months). So nothing the wrong at your side. Can start debugging now without being blindfolded.
    However wonder if you've ever seen my calendar in the ES program show anything.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    No, I didn't get it to show me anything when I was using version c!

    Boy I feel bad that I can't be more help!

    Leaving in the morning for Detroit, got a race there this weekend then back to the shop on Monday. I will have my computer with me so let me know if I need to check anything.

    Thanks for all your help!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Boy I feel bad that I can't be more help!
    Shouldn't that be the other way round?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjalle

    Lol!!

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I think I solved the issue with the calendar.
    Runs fine with US language as well as Dutch language setting.
    Like I said before, it has become pretty busy with all those forms popping up.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    It is working for me also! Doesn't seem to slow to me! more later!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Good to here that. Already made the adjustments to speed it up.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I really believe I've solved the language issue in the Datepicker too.
    Can you try?
    If it works OK, I would like to add to the calendar to replace the activex control, if that's OK with you.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    That works fine.....In the US its M, T, W, T, F, S, S for days on top of calendar.

    Yes just let me know what I need to do to make mine have the same changes!

    Traveling today!

    Thanks for your efforts!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Need to do some tidying up and look at any remaining hardcoded Dutch text and alike.
    Will upload a new version of the calendar containing the datepicker later this week.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Sounds Good!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Hi Rick,
    here's the ES Program with the Datepicker added to the calendar.
    Like I said before it's getting a bit crowded with several windows popping up.
    The info window however you don't need to close every time. You can just park it somewhere and it will be update when you select another cell (it's modeless).
    Attached Files Attached Files
    Last edited by Tsjallie; 08-30-2015 at 04:47 PM. Reason: Encountered one more glitch. Uploaded corrected version.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I like it! I tried to make a reservation but the ok would not light up (gray). I am asking to make sure I am getting everything thats suppose to work on my program. I understand that it may need to be attached to the record still! I will be leaving here and flying home on Sept 2nd and should be able to spend lots of time working on getting this ready to go live. Just hoping that MS gets its act together with the new Excel for Mac 2016 program so Vacationville will be able to run this with out running windows!!

    Can't wait to get to dig into this and see how you make all this work!!

    If you enjoy racing here is a link to our fan page at Go3 Racing https://www.facebook.com/go3racing

    Thanks as always for your efforts!!

    u3rick

    Screen Shot 2015-08-29 at 8.06.23 AM.png

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    It indeed needs some work yet to get it completely up-and-running. So about time you stop wrecking boats
    the new Excel for Mac 2016
    Hope they make it compatible with Windows Excel

    Will make up kinda manual for the Datepicker.
    I hope I kept things comprehensible.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Yes... it works fine! I tried to run on Mac version. That version still doesn't do forms and brings up an error message when you click on a cell! I think MS is still behind!!Lool! (see screen shots below).

    Every time we run that boat something breaks!!

    Thanks,

    Rick

    Screen Shot 2015-08-31 at 1.24.23 PM.png

    Screen Shot 2015-08-31 at 1.24.38 PM.png

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Hmm, guess MS indeed has some work to do yet.
    BTW, there is a "other platforms" section on this forum for (i.e.) Mac-users.

    And here's the DatePicker Manual.
    Attached Files Attached Files

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Got the manual...Thanks. I see there is an area for mac, but Mac 2016 is so far from working the same as windows version with VBA. It will be much easier to in stall windows on the macs at Vacationville.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Not familiair with Mac, but doesn't it offer a windows emulation?

    Found this on some website:
    VBA in Office 2016 is not fully implemented yet, and VBA needs to be "activated" in each app it's used in; "activation", in my words, means that MS has provided Resource files in the Word app in the language and my installations of Office 2016 do have Russian Language Resources in the VB engine - whether this has been enabled by MS is another matter. VB in existing documents did not work for me until I enabled the Developer Tab, which is hidden by default.
    May be ....
    Last edited by Tsjallie; 09-01-2015 at 03:58 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Yes...I use Parallels, but you still need to install windows. It runs both Mac & Windows fine at the same time.

    Now MS has both Mac & Windows versions called Excel 2016 just a little confusing!! I check it out and the info you provided is for the windows version. They still say in the future they are going to catch the Mac version up with the Windows version...... Not sure I will be alive for it, but maybe my kids will see it...lool!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Where should my first efforts be spent in starting to finalize what is going to be the finished product? I would like your input as to what forms we should use. Then I will start moving in that direction and try to tie it all together. With you help go course1 I looked at the coding you used to make the Calendar work, very complex for me!!::roll eyes:

    I have some time so I am ready to go.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Just downloaded Excel 2016 PC version...should be interesting!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I have been looking at your Calendar and noticed that if I pick a vacant month directly after a occupied month it won't let me change the checkin date for the new reservation? Can that be fixed?

    Thanks

    Rick

    Screen Shot 2015-09-04 at 8.13.28 AM.png

    Screen Shot 2015-09-04 at 8.19.46 AM.png

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    This was intended to prevent that a MoveIn date would be choosen which overlaps an earlier occupation, but this also disables selecting a later date.
    Nice piece of thinking
    You can solve this quite easily.
    In the Worksheet_BeforeRightClick() procedure find the following lines near the bottom of the procedure:
    Please Login or Register  to view this content.
    and comment them out. This will make both date boxes always available.
    MoveIn date box will still be disabled when MoveIn date is in the past.
    If you want to get rid of that too, find the following which is 2 lines before the other 2 lines:
    Please Login or Register  to view this content.
    and comment that out too.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Thanks!

    When the Extended Stays window pops up is the user to type in the New Renters name and then click ok. or is the user suppose to just click New Guest and the new guest entry form pops up?

    I am just getting all this straight in my head!

    I am going to take your calendar and combine with the original calendar and see if I can make a hybrid work, and see if I like it. It will be your's with my formatting most likely! It will be good practice for me. let me know your thoughts if you think I should go another direction!

    I will be doing this with Excel 2016 hope it works.

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    How do I change dates at the top of your Calendar? Some months not in english and the first letters are not in cap letters.

    It looks like the Property IDs are typed in on your calendar. I need it to pickup the active properties Ids from the properties worksheet. Can I just make a formula that does that? Will that mess up how your calendar works?

    I am trying to understand your code but you are very advanced player!! I can see how it works in some places but lost on others. I noticed that your forms are compact and you used small fonts and no logos. Is this just a time saving for you and your coding or does it make the program run fast and keep everything more compact? With that in mind should I redesign my forms to be small and compact as the goal. Is the logo a problem and should it be used in a limited amounts?

    I know so many questions!! Wish I could just download your programing ability direct to my brain!!lool! I have forgot more questions than I am asking!

    Thanks for all your help.... don't know if I can afford all the beers I owe you!!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    To your post #156 (wow!):
    Take your time to get things straight. It's important that you understand what's going on. It's your workbook.
    Also be aware that this calendar is kinda showcase of what you could do. It needs quite some tyding up to make it a decent piece of code.

    I have a lot of ideas about this workbook, but most important is what your users expect it to support them with.
    What do they think?
    I would focus on the frontoffice people (and the calendar) for now. So loose the GuestActivity form. That more for accounting people.
    In one of your first post you mentioned that the layout should resemble the other application. Are you bound to that constraint?

    Will get back on the other things.
    Last edited by Tsjallie; 09-05-2015 at 03:26 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    There are no constraints, that was just my guide in design. They don't care as long as I train them to use it.

    Excel 2016 pc version seems to work fine. Its not Excels final version that will be sold but it close and gets updated every month till it is the final version. No problems so far!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    How do I change dates at the top of your Calendar? Some months not in english and the first letters are not in cap letters.
    These cells still have a custom format which is causing that.
    Change the format to a true date format and choose the appropriate make-up like this.
    DateFormat.JPG

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    It looks like the Property IDs are typed in on your calendar. I need it to pickup the active properties Ids from the properties worksheet. Can I just make a formula that does that? Will that mess up how your calendar works?
    Nothing is typed manually in the calendar cells. It's all done by a formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The Get.....IdFromGuestStaysTable is also a formula, but it's assigned to a name. You can that in Formulas -> Manage Names.
    I did that to make the formula in the cells shorter.

    Actually the calendar is dynamic meaning it's self adjusting to the current date. In this way you will never have to make any adjustments to it yourself.
    It also means that you cannot have any cell specific data or formatting.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I noticed that your forms are compact and you used small fonts and no logos. Is this just a time saving for you and your coding or does it make the program run fast and keep everything more compact? With that in mind should I redesign my forms to be small and compact as the goal. Is the logo a problem and should it be used in a limited amounts?
    This is just about layout and personal preference. No impact on performance.
    On the other hand if your users are mainly working in the worksheet then these popup windows shouldn't cover too much of the worksheet. So no real need the change the layout unless your users want that. Which I could imagine.
    And yes, logos are space consumers. Personally I would say one's enough. But now I'm almost sitting on your chair

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    One thing on the calendar that I need added to your formula is have it only list the active properties. That column in the properties sheet has a yes for active and a no for not active properties. I looked but could not figure where to add the if question?

    I was trying to add a color format rules to the conditional formatting but it won't work.

    It also means that you cannot have any cell specific data or formatting.
    Is this why it won't work?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    When I look at your Property Column in Tsjallie_Calendar I see no formula just the unit ID no = sign in front...how does that unit ID number get there? I have hook in the new property button to your calendar and added a new unit. When I added the new unit I had to manually pull the table down in the Calendar. Have I messed something up or is something missing?

    Thanks

    Rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    I was trying to add a color format rules to the conditional formatting but it won't work
    You should be able to add formatting to the cells with conditional formatting, but beaware of the way these rules are applied.
    It may be that another rules takes precedence over the rule you entered.
    See for more about this: https://support.office.com/en-us/art...5-8e8126076249

    One thing on the calendar that I need added to your formula is have it only list the active properties
    For that you should add a column "Active" with a lookup on the PropertiesTable and then filter on that column.

    You could also expand the formula in the calendar cells with a condition displaying "N/A" if the property is not occupied and not available.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    [@Active] refers to the inserted column mentioned above.
    If you do this you will also need to make some adjustments to the event procedures of the calendar sheet:
    In worksheet_BeforeRightClick() add these lines in the case construction:
    Please Login or Register  to view this content.
    and in worksheet_SelectionChange() change this line
    Please Login or Register  to view this content.
    into
    Please Login or Register  to view this content.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Property column does not contain a formula. IDs are entered manually.
    Of course that can be automated by a formula. We did that before.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I have put a formula in Property Column:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and changed the forumla in Address Column to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This just shows active properties on the Calendar.

    I have added a Sort button to the Calendar that refreshes and organizes the properties by unit ID on the Calendar and the Properties sheet.

    Seems to work except when I am manually deleting an entry for further testing.

    I am leaning towards not deleting any units when operational. We will just make them inactive by changing the Active column cell to "no" and changing the letters in front of the property ID to zz.

    What do you think?

    Thanks

    u3rick
    Last edited by u3rick; 09-06-2015 at 05:16 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    can you upload the workbook?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Here is the file its just the file where I am trying things

    ES Program Redesign_v2.2erickchgs.xlsm

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Can you take a look at the GuestStays Sheet? I need to get the GuestId & PropertyId posted to GuestStays Sheet (Its manual input currently). Everything I tried makes a circular ref!

    I need to fill in this info from frmStaysEntry_Tsjallie to complete the reservation.

    I have added the New Guest Form and once it is filled you go back to frmStaysEntry_Tsjallie and use a combo box to bring up new renter.

    You may have a different way that might be cleaner to do this.

    Let me know!

    u3rick
    Attached Files Attached Files
    Last edited by u3rick; 09-07-2015 at 02:14 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie




    Use this version could not change it on the above post!

    ES Program Redesign_Ricks_v2.3.xlsm

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Ok, just not showing the inactive properties makes things much easier.
    In that case you don't need to make the changes from post #165.

    There's one glitch in your formula though.
    It will leave rows in the calendar blank when a property is inactive.
    Just make (e.g.) the 5th property inactive and see what happens.
    You can kinda solve this by sorting the properties on the Active column descending.
    Will look to improve the formula to rule this issue out.

    Begins to look pretty slick now.
    Last edited by Tsjallie; 09-09-2015 at 02:23 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    There is something wrong in the GuestStays sheet that affects the calendar? I noticed when I made the number 5 unit inactive and sorted it changed the location of the reservations on the Calendar. Something funny going on, but I can't put my finger on it! Take a look, it has to do with the unit ID column it doesn't match the property ID??

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Here are some screenshots of where I see the problem location!

    Screen Shot 2015-09-08 at 6.06.45 AM.png

    Screen Shot 2015-09-08 at 6.10.02 AM.png

    There should be only one (xy JL 303) on that list?

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    About the lookup-issue.
    Read this and look at the last section about the "Zoolander problem".
    Change the formula in the GuestStays sheet column V (Propertycode) into this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Edit: afterall I don't think it's the Zoolander problem, but the solution does the trick.
    I like Index/Match more than Vlookup or Hlookup anyway.
    Last edited by Tsjallie; 09-09-2015 at 05:15 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Thanks, the Calendar loved it!!lool!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Can't figure out the coding to get the propertyId to load when I choose the unit and dates from your Calendar. I have added it where I think I should in your Calendar Sheet, but it won't work.

    I need PropertyId, StaysId, GuestId, MoveIn and MoveOut to make the GuestStays Sheet fill in. I think its setup, but can't test because I can't get the OK button to work??

    Screen Shot 2015-09-09 at 10.01.46 PM.png


    Thanks!!

    u3rick
    Attached Files Attached Files
    Last edited by u3rick; 09-10-2015 at 12:40 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Just a note of what I tried and didn't work to fill propertyId in the form.

    Screen Shot 2015-09-10 at 6.56.40 AM.png

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    UPDATE
    Figured out you had the OK button disabled. So the code is working now, but I still need to get the form initialized with PropertyId then I think it will work.

    Here is the last version that I worked on. Sorry for changing so fast but trying to catch up!

    ES Program Redesign_Ricks_v2.3b.xlsm

    Thanks

    u3rick
    Last edited by u3rick; 09-10-2015 at 12:53 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Here is a thing the calendar needs to be able to handle that I left till last. This is a small thing but important and will most likely be hard to code.

    I need to be able to block out months that will not allow bookings. For instance the units that have the xy in front of them like xy Jl 106. These units are in the extended program and the short stays program. They are not available in July and August and need to be blocked. Hope you can come up with a simple addition that makes that feature available. The way the calendar sheet is programed it is over my head. (needs no acting etc)

    Thanks

    u3rick
    Last edited by u3rick; 09-10-2015 at 02:56 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    To get the PropertyId you can just pick it up from the GuestStays table.
    If you make the following changes to that part of the procedure it'll work OK.
    Please Login or Register  to view this content.
    Some other remarks:
    The macro behind the button "Sort Calendar" should sort the Properties on columns "Active" desc and on column "PropertyCode" asc

    Sometimes date boxes are still disabled. Make these corrections in Worksheet_BeforeRightClick of the Calendar:
    Please Login or Register  to view this content.
    Of course you may also just delete the commented lines.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Yet another observation:
    when right clicking an existing booking the Book button in the StaysEntry from should be disabled I guess?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    I tried the the code you showed above to get propertyId, but on the Calendar that info comes from the Property sheet. The Stay is new and is not in the GuestStays sheet until I record it. So nothing shows up in that box on the form.

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    In the GuestStays table the 3rd column is the PropertyId.
    Do you have this line too?
    Please Login or Register  to view this content.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Ah, I think you mean the StayId.
    Move this line
    Please Login or Register  to view this content.
    from the userform_initialize procedure to the Worksheet_BeforeRightClick procedure
    in the section where target = "".
    And add the line
    Please Login or Register  to view this content.
    to the section at the ende where the form boxes are filled.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie


    Yes

    Screen Shot 2015-09-10 at 1.59.26 PM.png

    But the propertyId is not in GuestStays yet as it is a new stay.

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    When making a new booking The GuestStays sheet needs five things:

    Screen Shot 2015-09-11 at 5.34.49 AM.png

    A) A new StaysId which it gets from the frmStaysEntry_Tsjallie user form Initialize.

    Please Login or Register  to view this content.
    B) A GuestId which it gets from the frmStaysEntry_Tsjallie Guest Combobox (new or existing Guests)

    C) a PropertyId which I am not getting at the present time.

    D) Move in date which I get from the Calendar & frmStaysEntry_Tsjallie

    E) Move out date which I get from the Calendar & frmStaysEntry_Tsjallie

    These five things entered into the GuestStays sheet will create a new GuestStays booking.

    Column C on this list is where I am having a problem. I may be totally of base on this, but here is where I see the problem. The property Id can't be filled in from the GuestStays sheet information. The reason is, it is not on the GuestStays sheet until the booking is finalized. The only place I think we can find the correct PropertyId is by matching it to the PropertyCode on the Calendar. The PropertyCode that is at the end of the highlighted dates has to be matched with the PropertyCode in the Properties sheet and filled in on the frmStaysEntry_Tsjallie Label10.

    With that said I have not figured out how this should be done!

    I am I seeing this correctly?

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Thought this might work,

    Please Login or Register  to view this content.
    but it has this Error

    Screen Shot 2015-09-11 at 6.49.47 AM.png

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Yet another observation:
    when right clicking an existing booking the Book button in the StaysEntry from should be disabled I guess?
    Yes, it needs to be disabled if existing booking (booked date cell) and enabled if its a new booking or (blank date cell).

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Why not show the StayEntry form if an empty cell is clicked (property is unoccupied) and show the GuestActivity form if the cell is not empty (property is occupied).
    You could then combine these in the DoubleClick or in the BeforeRightClick event. Makes it easier for you as well as for a user.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    That sounds like a winner! I will see if I can figure out how to make that happen!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Guess this version does everything from your post #187

    BTW, also combines the StaysEntry form and GuestActivity form in the BeforeDoubleClick event.
    And opens full screen.
    Attached Files Attached Files
    Last edited by Tsjallie; 09-11-2015 at 04:53 PM.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Thanks, that works great! I am reducing the size of some of some of the forms. I hope to have that done along with all the forms up and running from the Calendar home page soon. I will leave the accounting and payments part alone for now. Then I will make a new version with as much of your todo list included and send it to you to check and comment. After that I will make myself a live new version from Vacationville actuals and see what happens!

    Thank so much!

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Ok. Good luck.
    I will do some more checking. So maybe more observations. Most likely obsolete lines of code.
    Will also look to add min and max dates to the datepicker. Would help preventing overlapping stays.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Have you done any thinking on post# 180?

    Have a beer while thinking!!

    Thanks

    u3rick

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Tsjallie

    Having a problem with the Table ListGuestStaysPC can you take a look!?

    Thanks

    ES Program Redesign_Ricks_v2.3d.xlsm

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Oops! Overlooked post #180.
    Will look into it.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    Having a problem with the Table ListGuestStaysPC
    What's the purpose of this table?
    Isn't obsolete as it refers to the Guest column in the old Calendar which has been dropped in the new calendar.

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    The way the calendar sheet is programed it is over my head
    I was affraid of that. How serious is it?

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

    Re: Copying random columns from one sheet to another in same workbook..Problem?

    About the unavailability periods:
    I'm introducing a table where you can store regular periods (e.g. july and august) and/or spacific (adhoc) periods.
    It will come with a form to maintain that table and a button somewhere to start the form.
    I'll also adjust the formula in the calendar to show these periods as non-available (N/A).

+ Reply to Thread
Page 1 of 2 1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Random List Generator How to copy Columns A and B to Sheet 2
    By guitarsweety in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-08-2014, 09:01 PM
  2. [SOLVED] Copying data from one workbook sheet to another workbook sheet without overwrriting
    By Amol1988 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-09-2014, 01:58 AM
  3. Copying unprotected data from one sheet of workbook to another workbook
    By rushabh bhansali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 06:18 AM
  4. Replies: 4
    Last Post: 12-22-2012, 01:41 PM
  5. Append Data From One Workbook to Another Workbook (Consolidate Random Columns)
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-23-2010, 01:15 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