Results 1 to 9 of 9
  1. #1
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658

    Setting tab positions?

    The tabs are driving me crazy in the VBA editor, always going 5 in, it’s too much space when I’m 5 or more levels deep. A third of the window is spaces. I’m going to get equivalent of lateral of whiplash!

    In my old line editor there was a command to set tab spacing, something like this
    .set tabs 5, 7, 9, 11, 13, 15, 17, 19


    Then when I hit the tab key it indented 5 for the first line when tab was pressed, and the next line in nested situations would go 2 deeper with a tab press.

    Is there a way to establish the tab positions (as in Word) in the VBA code editor?

    And while I'm at it, why doesn't the Windows clipboard history work in the VBA editor? Isn't that kinda a big MS doh?

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    If you click
    Tools ¬ Options
    in the VBA editor there is a Tab Width setting you can adjust.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    It's not like tabs on typewriters (which is what the OP sounds like) which could be 2 then 7 then 11 then 25... for as many tab stops the typewriter had. I guess it's practically unlimited in apps like Word. The VBE option controls how many spaces the cursor will indent when I hit the Tab key. I use 3.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658

    Good tip

    Quote Originally Posted by Minty View Post
    If you click
    Tools ¬ Options
    in the VBA editor there is a Tab Width setting you can adjust.
    Thanks for that, you saved my neck.
    A little odd though, if you put 2 in the tab, the first is at 3. The first always seems to be +1. But I can live with that.

  5. #5
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Now the real work is fixing all the horrible tabs I've got in some old code.
    I haven't seen an auto indent/format feature yet.

  6. #6
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    I would invest in MZTools - it has a very handy Auto-Indenter.
    It's been around for ages and has a number of very useful features, and a load of more things I should use and don't.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  7. #7
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    There is also a free Smart Indenter utility
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  8. #8
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Quote Originally Posted by isladogs View Post
    There is also a free Smart Indenter utility
    Hi Colin - does it work with 64-Bit versions, I thought it didn't?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  9. #9
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Not sure. Apparently there is a trick to getting it working in A2013 onwards. See Installing Smart Indenter in Office 2013-2016 | Experts Exchange (experts-exchange.com)
    I have it in 32-bit A365 but I also have A2010 on the same workstation.

    Will investigate tomorrow on my 64-bit tablet PC
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Clock hand positions possible>
    By MrOhhmy in forum Access
    Replies: 9
    Last Post: 10-21-2018, 03:01 AM
  2. Replies: 4
    Last Post: 10-25-2016, 03:58 PM
  3. Replies: 1
    Last Post: 08-20-2015, 05:28 AM
  4. Setting Field positions
    By George in forum Access
    Replies: 8
    Last Post: 07-25-2015, 06:13 AM
  5. Field Positions
    By MaineLady in forum Access
    Replies: 3
    Last Post: 07-25-2015, 05:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums