We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

Excel Visual Basic Help

2»

Comments

  • jghal
    jghal Posts: 129 Forumite
    Fantastic. thank you so much.

    Last one - promise ;-)

    The CopyInfo code shown is just a portion of the entire CopyInfo code. I have made all the necessary changes to the entire code and it all works :)

    However, when my code shuts down the variable workbook it asks if I want to keep the information previously copied on the clipboard. I don't need this kept - can I

    a) remove it from the clipboard automatically and prevent this message

    OR

    b) just prevent this message appearing and keep the info on the clipboard (it really won't matter that much

    Thanks in advance
  • Mobeer
    Mobeer Posts: 1,851 Forumite
    Part of the Furniture 1,000 Posts Academoney Grad Photogenic
    It seems from a brief search that clearing the clipboard is rather difficult using VBA.

    You could try this approach (add in code and use API calls)

    Or you could try an alternative approach (add in a forms reference and use it)
  • Not sure if this will work, but try:

    Application.CutCopyMode = False
  • jghal
    jghal Posts: 129 Forumite
    Thanks All

    Mobeer's first suggestion did the trick - many thanks

    Now have my spreadsheet working exactly as I want it.

    This is a great forum - ask a question, get it sorted - just what it says on the tin :)

    Absolutely fantastic

    :beer; :beer:
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.6K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455.1K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 603K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.7K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.