+ Reply to Thread
Results 1 to 15 of 15

Smart Indenter VBA on windows 64 bit

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

    Smart Indenter VBA on windows 64 bit

    Hello everyone
    I have this little and great software (Smart Indentor VBA) that enables me to organize the lines of the code
    It works perfectly on Windows 32 Bit ...
    After installing Windows 10 64 Bit (Office 2013 64 Bit), I tried to use it but it seems that it doesn't work with 64 bit

    I have searched for a version that support 64 bit but I didn't find it

    Is there a way to make it working in 64 bit or is there a newer version that deals with the 64 bit?

    Thanks advanced
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Smart Indenter VBA on windows 64 bit

    No, and no. It's one of the reasons I hate working in 64bit Office. (note: it's nothing to do with Windows bitness, just Office).
    Remember what the dormouse said
    Feed your head

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

    Re: Smart Indenter VBA on windows 64 bit

    Thanks for reply
    I have this addin for 64 bit but it is not powerful as the Smart Indenter VBA ..
    Here it is

    But hope to find a version supporting 64Bit
    Attached Files Attached Files

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Smart Indenter VBA on windows 64 bit

    There isn't one. There was some talk a while ago about someone taking over the source code from Stephen Bullen and updating it, but it never went anywhere that I've heard.

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

    Re: Smart Indenter VBA on windows 64 bit

    No it is working with me
    This adding is working but the results are not very accurate
    You can install it then in Project window right click then you would find Insert then Indent Code ..Then you can select procedure or module or project

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

    Re: Smart Indenter VBA on windows 64 bit

    Hope someone find a solution to this tool .. or alternative tool ..

  7. #7
    Registered User
    Join Date
    03-08-2017
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    2

    Re: Smart Indenter VBA on windows 64 bit

    Quote Originally Posted by YasserKhalil View Post
    Hope someone find a solution to this tool .. or alternative tool ..
    Hello. I built a very simple add-in for code indentation, what works for me at 64-bits Excel, Word and AutoCAD, it here.

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

    Re: Smart Indenter VBA on windows 64 bit

    Thanks a lot Osevoso for that. I am using 32 bit now after suffering with 64 bit but may be one day I will try it certainly
    Thank you very much for your reply
    I appreciate that a lot

  9. #9
    Registered User
    Join Date
    03-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Smart Indenter VBA on windows 64 bit

    Oh, but it did go somewhere - the open-source Rubberduck project has ported the original VB6 source to C# (and then heavily refactored it); as a result all Smart Indenter settings are available, plus bug fixes and even additional settings, and work perfectly well in 32-bit and 64-bit VBA hosts.

  10. #10
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Smart Indenter VBA on windows 64 bit

    ...all Smart Indenter settings are available
    Except one of the more useful features - Indent the entire project; indenting a procedure or module is fine but it's a pain to have to go back and do the project module by module which is essential when you pick up "something we tried to do ourselves..."

    Other than that, and the fact it always crashed on exiting Excel (and I do realise that is documented with a fix somewhere) the only other downer is the need to actually have it analyze the project before you can do anything - but a very good start, none the less.

    Bugs? I've never had an issue with, or noticed any bugs in, SI and that's using it since VB6 days (if not VB4 or 5 - too long ago to remember now).

  11. #11
    Registered User
    Join Date
    03-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Smart Indenter VBA on windows 64 bit

    @cytop Indenting the entire project is a trivial addition, we'll add it for next release - we haven't had any feedback asking about the missing feature, so it must have just slipped. I agree that the menus being disabled until the initial parse has started is annoying, but the commands actually get enabled as soon as parser state reaches "Parsing" - so you don't need to actually wait for it to complete (although, changing token positions while they're being processed is arguably a bad idea), and we'll enable the commands that aren't tied to parser state at startup, too - since the indenter doesn't use the parser state or parse trees, it'll be among the commands that will be available without processing anything... although we've moving towards an automatic initial parse, and I'm not sure which version you tried but processing performance v2.0.12 has nothing to do with v1.4.3 (which was slow as hell and blocked the UI thread).

    If you haven't experienced any bugs with the original Smart Indenter, you haven't tried hard enough to break it!

    Please Login or Register  to view this content.
    It gets even more confused with `Function` and `Sub` type members, which are perfectly legal too. Fixed in Rubberduck's port.

    Line continuations are also legal, and problematic (fixed in Rubberduck's port):

    Please Login or Register  to view this content.
    Instruction separators get mistaken for line labels (also fixed in Rubberduck's port):

    Please Login or Register  to view this content.
    It also happily lets you indent a line such that it ends up exceeding the maximum line length allowed in the VBE (1,024 characters) - see #2836 for all the details.

  12. #12
    Registered User
    Join Date
    03-08-2017
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    2

    Re: Smart Indenter VBA on windows 64 bit

    Quote Originally Posted by rubberduckvba View Post
    Oh, but it did go somewhere - the open-source Rubberduck project has ported the original VB6 source to C# (and then heavily refactored it); as a result all Smart Indenter settings are available, plus bug fixes and even additional settings, and work perfectly well in 32-bit and 64-bit VBA hosts.
    Rubberduck perfectly worked for MSOffice hosts, when I tested it "for recruiting", but it broke down in ours 64-bit AutoCADs 2014 while VBE loading, so, it was easier to write self own simple tool for universally use while that time. But I will test it again for later :-)

  13. #13
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Smart Indenter VBA on windows 64 bit

    you haven't tried hard enough to break it
    I never tried to break it - but I've never tried a line continuation character in an Type declaration either...

    maximum line length allowed in the VBE (1,024 characters)
    If a line is that long then shoot the programmer!

    Instruction separators get mistaken for line labels
    Have you ever tried to beep the speaker (Pathetic, I know) twice in VBA, or VB6/5/4/3/2/1...? (Must dig out VB2008 or later and test this again).

    Please Login or Register  to view this content.
    Smart Indenter is simply, and proudly, carrying on an established VBx/VBA tradition...

    Can't remember the version I tried, but only downloaded it a couple of weeks ago and removed it last week but your proposed changes do address most of the niggles (only niggles) I had so will have another look at the latest.

    Ta for that.

  14. #14
    Registered User
    Join Date
    03-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Smart Indenter VBA on windows 64 bit

    If a line is that long then shoot the programmer!
    Definitely! Actually there are several number of edge cases we test for, for which the single most effective "fix" involves a 50,000 V / 500 amp discharge in the keyboard.. or mouse... lol

    Interestingly, testing for these edge cases have given us a number of actual VBA grammar/parser bugs. For example you can have a legal line continuation just about anywhere, except in an "End Enum" token (they got that one right!). And did you know you can have a "Public Property" with a valid and perfectly legal and working "Exit Sub" statement, that ends with "End Function" or "End Sub"?

    Working on Rubberduck has been (and continues to be) a very interesting learning experience

  15. #15
    Registered User
    Join Date
    03-11-2017
    Location
    The Intertubes
    MS-Off Ver
    2013 x32
    Posts
    1

    Re: Smart Indenter VBA on windows 64 bit

    I'm responsible for the majority of the work on the C# port, and just pushed a commit that reinstates the Indent Project functionality. We did opt to leave the progress window out of the Rubberduck implementation though - my testing on a project with 112 code modules was completing the entire thing in around 15ms, so we figured it wasn't really needed...

    If there's any other functionality that you'd like to see, just drop by our project on github and open an issue requesting it.

+ 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. VBA Code Indenter
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2013, 09:05 AM
  2. [SOLVED] Enable / Disable Macros behaving differently in Excel 2003 from Windows XP to Windows 7
    By TC1980 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-21-2013, 09:09 AM
  3. Replies: 4
    Last Post: 06-20-2013, 09:30 AM
  4. VBA Indenter 2013
    By davesexcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 05:28 AM
  5. Replies: 0
    Last Post: 03-08-2012, 11:25 AM
  6. Replies: 1
    Last Post: 11-28-2009, 07:17 PM
  7. Replies: 0
    Last Post: 11-28-2009, 01:28 AM
  8. [SOLVED] URGENT, Stuck Smart Indenter
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-23-2005, 04:05 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