+ Reply to Thread
Results 1 to 2 of 2

Do Nothing if about to overwrite

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    Rome, Georgia
    MS-Off Ver
    2011 Mac
    Posts
    52

    Do Nothing if about to overwrite

    I have this simple macro which moves a vertical or horizontal range of text to the right (also a similar for moving to the left):

    Please Login or Register  to view this content.
    1. I would like it to NOT work if it is about to overwrite ANY text in the moving path.

    2. This macro also doesn't work properly if the active cell starts on the right because of the way the bolded lines are written. If you have any ideas, please help me out!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Do Nothing if about to overwrite

    Hello TechKnowledge,

    Just to be clear, "overwrite ANY text in the moving path" means don't do it if the destination range has text, correct?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. [SOLVED] Macro with "save as" --- Need excel to overwrite a file without a prompt to overwrite
    By tsmith1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 10:54 AM
  2. Code for asking for overwrite YES/NO
    By zyrr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2012, 09:53 AM
  3. Prevent data cell overwrite but allow blank cell overwrite
    By Squasher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2011, 09:24 AM
  4. [SOLVED] Overwrite Protection
    By marcus.ucdavis in forum Excel General
    Replies: 0
    Last Post: 08-16-2006, 11:55 AM
  5. overwrite
    By SP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2005, 02:06 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