+ Reply to Thread
Results 1 to 3 of 3

Weird Macro Bug

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Providence
    MS-Off Ver
    2013
    Posts
    32

    Weird Macro Bug

    I am trying to create a dynamic model which allows a user to record financial data. One simple function allows a user to systematically add a column to a sheet with the following macro:
    Please Login or Register  to view this content.
    It was working perfectly but for some reason it started coping and pasting columns A:H, instead of column H. Why/how did this bug occur? How can I resolve it?
    Last edited by Leith Ross; 06-03-2015 at 01:15 PM. Reason: Added Code Tags

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Weird Macro Bug

    are you sure that's exactly the code in the module..? i don't see any reason that would happen. but, you don't really need all the ".select" and "selection." noise. this might work better:
    Please Login or Register  to view this content.
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    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: Weird Macro Bug

    Hello djl295,

    When code I have been using for sometime suddenly stops working, I defragement both my main drive and the registry. This generally fixes the problem.

    To defragment the registry, you will need a third party program. Microsoft does not supply one as part of the Windows operating system.
    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] Print All Macro Doing Weird Things.
    By Garbology in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2014, 08:47 PM
  2. Excel Search and Replace macro gives weird output
    By supernewbie123 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-23-2012, 11:00 AM
  3. really weird copy macro problem
    By gillrajb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2006, 10:11 AM
  4. Macro is weird!
    By toolroomman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2005, 05:05 PM
  5. Weird Macro Problem
    By Bruce001 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-25-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