+ Reply to Thread
Results 1 to 5 of 5

Unrelated macro prevents typing in cells, until switching to another tab and back again

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Sussex, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Unrelated macro prevents typing in cells, until switching to another tab and back again

    Hello,

    Fairly new to Excel/VBA stuff, so forgive me if I've made a stupid mistake somewhere.

    I have a spreadsheet formatted like a calendar, and have some simple ActiveX buttons on the right.

    When one of these buttons are clicked, it runs the following macro on the currently selected cell:

    Please Login or Register  to view this content.
    There are many macro's like this, running from A through to K (ColorCodeA, ColorCodeB, etc.)

    However, once I have clicked this, I can no longer enter any data in to any cells on that sheet until I have switched to another tab, and back to the original one.

    It doesn't matter if the cell/sheet/workbook has any protection settings active or not, and I don't have to do anything else except switch between tabs.

    I'm not sure what could be causing this. I have some other macro's in the workbook, spread across three module's, but this still happens even if they haven't been run since closing and re-opening the workbook.

    I would appreciate any assistance in trying to find the source of this annoying problem.

    Regards

    Craig

  2. #2
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Unrelated macro prevents typing in cells, until switching to another tab and back agai

    could try

    Application.ScreenUpdating = False
    Then execute all your code with formatting
    .....
    ....
    Final step
    Application.ScreenUpdating = True

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Sussex, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Unrelated macro prevents typing in cells, until switching to another tab and back agai

    Quote Originally Posted by ThirtyTwo View Post
    could try

    Application.ScreenUpdating = False
    Then execute all your code with formatting
    .....
    ....
    Final step
    Application.ScreenUpdating = True
    Thanks for the reply.

    I tried the code, but still having the same issue..

    Regards

  4. #4
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Unrelated macro prevents typing in cells, until switching to another tab and back agai

    how about a final step of the routine to select or activate a cell on the sheet

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-19-2013
    Location
    Sussex, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Unrelated macro prevents typing in cells, until switching to another tab and back agai

    Tried this code too, but still not working.

    I still have to switch to another tab and then back again in order to enter data..

    Regards

+ 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: 7
    Last Post: 09-20-2011, 01:50 PM
  2. Replies: 4
    Last Post: 07-29-2009, 11:33 AM
  3. One macro prevents another from working
    By KevinThomas in forum Excel General
    Replies: 4
    Last Post: 05-07-2009, 05:32 AM
  4. Allowing macro to run while typing words into cells
    By Cellar Webs in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2007, 02:20 PM
  5. [SOLVED] Matching cells that have unrelated information
    By Troy S. in forum Excel General
    Replies: 1
    Last Post: 08-30-2005, 11:05 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