Results 1 to 2 of 2
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Stuck on VBA code

    In the attached spreadsheet when I press the form control button to select cells everything is fine. The


    cells with something in them are selected.

    Then when I press the form control button to Change Selected Cells to Text - well weird things happen.

    It seems that a lot more cells are now selected and then it starts with the circled (going round and round) in
    an attempt to change selected cells to text. Where is the hourglass?

    It appears to be stuck. The number of selected cells are much larger now since I press form control button to
    change selected cells to text. It is understand able that it may be stuck too many cells are now selected.

    What is the problem here?

    Ay help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Why are you selecting the ENTIRE spreadsheet in changenumbertotext()? Suggest you remove that line.

    Code in texttonumbers() should not prefix with a space. Use: c = c.Value

    I made corrections, select cells with the button, run the change procedures. Code is not stuck, just takes a long time. The more cells selected, the longer it takes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Stuck on code
    By JoJo6205 in forum Modules
    Replies: 4
    Last Post: 03-03-2015, 10:15 AM
  2. I'm stuck
    By tc197 in forum Access
    Replies: 14
    Last Post: 07-07-2014, 07:12 AM
  3. I am stuck!
    By asaloba in forum Database Design
    Replies: 9
    Last Post: 02-29-2012, 12:47 PM
  4. stuck on the best way to do this
    By token_remedie in forum Queries
    Replies: 1
    Last Post: 09-22-2011, 10:19 PM
  5. Can anyone help please... I am stuck
    By Casper2012 in forum Forms
    Replies: 7
    Last Post: 08-15-2011, 11:27 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