+ Reply to Thread
Results 1 to 3 of 3

Cut and paste cell comments using a macro

  1. #1
    Registered User
    Join Date
    04-18-2005
    Posts
    2

    Cut and paste cell comments using a macro

    I have the following macro that will shift a selection of data to the left by one month so that people can enter and view data throughout the year in three month 'views' and shift each month as they go by. The problem is that the comments do not get moved (cut and pasted I assume). They stay attached to the same cell that they were entered into originally. Is there something that can be added to this code that will move the comments along with the other cell data when the macro is executed? I have some programming skills but this is all new to me! I would appreciate any help!

    Thanks

    The code:

    Please Login or Register  to view this content.

  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,259
    Hello bc2010,

    The easiest method is to change your paste statement.

    Code Change From:
    Selection.PasteSpecial Paste:=xlValues

    Code Change To:
    Selection.PasteSpecial Paste:=xlPasteAll

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    04-18-2005
    Posts
    2

    That worked!

    Thanks a bunch! I did have to add some code after the copy command to delete the existing comment as well after copying but it seems to be working!

    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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