+ Reply to Thread
Results 1 to 24 of 24

Edit Codes to Allow For Tables Converted to Ranges

  1. #1
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Edit Codes to Allow For Tables Converted to Ranges

    Hello,

    I would like to convert my tables to ranges but some of the coding depends on the tables. Is it possible to alter the codes to allow for the tables to ranges?

    Thank you so much for helping,
    Fred

  2. #2
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    I think I can change the tables in the name manager but don't know how to alter the macros.

  3. #3
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    I converted the Tables 1, 2, 4 to:

    AFRsInputParts
    AFRsDB
    AFRsParts

    Now can I just replace the table references to these named ranges?

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Edit Codes to Allow For Tables Converted to Ranges

    I have downloaded the file and there are a lot of modules.. What module has the code you need to modify? and what you are trying to achieve?
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    The modules that are affected by Table1, Table2, and Table4. The other tables aren't affected by the codes. I will eventually change those to ranges also.

    My objective is to try to share the file here on our network. With tables I was made aware that it cannot be shared.

    Thank you

  6. #6
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    The workbook is functioning properly with the tables in place but I want to be able to share it on our network. That was my intention from the start. I was made aware that with tables it cannot be shared.

    Thank you

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Can you share the file via OneDrive (Sharepoint)? That way you will be able to retain tables.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    No the owner of the company will not allow it sorry and thanks for the suggestion Ali. It needs to stay on our local network.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Edit Codes to Allow For Tables Converted to Ranges

    That's unfortunate.

  10. #10
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Yes I know

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Edit Codes to Allow For Tables Converted to Ranges


  12. #12
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    I am struggling with code but trying to learn and thank you for your help Ali. I do pretty well with formulas and seem to understand them better.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Edit Codes to Allow For Tables Converted to Ranges

    But this is in the VBA section ...

  14. #14
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Yes that is why I need the help. Roel did so much work on the codes and he seems to understand how everything works. He sent me a private message stating that he will have a chance in the next few days to possibly change the codes.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Edit Codes to Allow For Tables Converted to Ranges

    OK - that's useful to know. It would have been helpful if he'd posted that here so that we knew someone was onto it.

  16. #16
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Very sorry about that. I didn't intend to be a bother for you.

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Edit Codes to Allow For Tables Converted to Ranges

    It's no bother - but if someone is going to be looking at it, it's useful to know that. This is a community, remember - keeping everyone fully informed is key to it working properly. Anyway, let's wait now until Roel posts here.

  18. #18
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Okay in the future I will mention if I am getting help if this happens again.

    Cheers!


  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Just for the record, you may (both) wish to remind yourself (yourselves) of forum rule #8:

    Do not private message forum moderators or members for Excel help. (A, Z)
    Administrative Note:

    All questions and answers will benefit other posters like yourself when discussed in public threads. The point of having a public forum is to share solutions to common (and sometimes uncommon) problems with all members.


  20. #20
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Okay I will thanks so much.

  21. #21
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,495

    Re: Edit Codes to Allow For Tables Converted to Ranges

    I had a look at your problem.. It took some changes and testing.

    Also I rearranged the codes form 15 separate modules (which made it hard for me to find the relevant codes) to 5 key modules each with 2 or 3 codes

    those modules are
    modFormLoadUnload - handles all loading and unloading (clearing) the inputform on sheet AFRsInput
    modFormSave - handles the save or update of the AFR record in AFRsDB and AFRsParts
    ModFormSupportButtons- has some codes for new AFR and reopen AFR buttons
    ModPrintorPreview - holds all the codes for the print and preview buttons
    ModPWSecurity - holds all codes that handles password protected features

    Posting the codes in this answer is counter productive as about 8 codes have been changed to handle the sheet without tables.
    3 codes have been removed these ar
    - ClearPartstable, the handling of the partstable in range O:Q on AFRsInput is now part of the AFRsInput_DataArea named range
    - AddMoreRows
    - Delete Rows
    last two because there is no table to add rows to or remove rows from.
    The parts table is now a preformatted list in the range O3:Q23, 21 parts seem enough to handle all repairs. I did not see added value in unformat and reformat the partstable range for loading and unloading each AFR.

    As anohter improvement I changed the sheet protection handling. Before the AFRsInput sheet was unprotected and protected for each change. Now I have created two short macro's in the new ModPWSectrity
    Const formprotect = "pass"
    Const Clerkpw = "clerk"
    Const NewAFRpw = formprotect

    Please Login or Register  to view this content.
    The FormLock code has an addtional parameter UserInterFaceOnly:=True this allows for all codes to be excecuted while the sheet protection is on.
    to make sure that the sheet protection is always on there is a new event macro worksheet_open in the Thisworkbook module

    very short code
    Please Login or Register  to view this content.
    this will make sure the sheet is locked. most of the time locking on opening is redundant but a good safety measure.
    In theory the unlock code is not needed but I think it is always a good measure to have those codes available in case you later decide to write (more complex) codes that will be better to handle with unlocked worksheet again.

    So please look at the attached file and test if everything still works as intended in the "table-version"
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Thanks Roel I did find one issue in the New AFR:

    Please Login or Register  to view this content.

  23. #23
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,495

    Re: Edit Codes to Allow For Tables Converted to Ranges

    oops, small issue with sheet ranges..

    Please Login or Register  to view this content.

  24. #24
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Edit Codes to Allow For Tables Converted to Ranges

    Thank you so far so good. I will test more in the next few days.

    I appreciate the fantastic help and support and wish I could find a way to pay it forward.


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 10-21-2015, 08:59 PM
  2. CSV clearing formatting so that sort codes converted to dates
    By JennyProjectEMC in forum Excel General
    Replies: 4
    Last Post: 09-25-2014, 07:00 AM
  3. How to read cells values from a converted to excel (converted to exe file)
    By AttalaEA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2014, 02:57 AM
  4. Lookup tables converted to userform with VBA
    By molesy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2014, 08:38 AM
  5. Convert list of zip codes into ranges
    By tregan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2013, 12:41 AM
  6. Number Values Converted to text, multiple ranges.
    By Whistler in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2009, 04:43 PM
  7. [SOLVED] Converted data to labels. The 0 in zip codes does not print
    By Judy in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-02-2005, 12:06 AM

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