clipboard problem

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft VBA Training and help » Clipboard Problem

Clipboard Problem

resolvedResolved · Medium Priority · Version 2010

Roger has attended:
Excel VBA Intermediate course

Clipboard Problem

I am running a macro in Word which creates mirror image Odd & Even Headers & Footers, i.e. the left & right parts of the even headers & footers are swapped over compared to the corresponding odd ones. To do this, for example, I cut the applicable left header part & then paste it to the right header part. When I run the macro, certain headers are blank. However, when I single step through, it works perfectly. Is it possible that when I run at normal speed, the clipboard is being cleared? Would it therefore be better to store the text in a buffer rather than in the clipboard?

RE: Clipboard Problem

Hello Roger,

Thank you for your question. My colleagues and I have had a look and realised that we regrettably can't assist you with this. Word VBA falls outside of our scope of knowledge and training courses. We only train VBA in Access and Excel.

I do apologise for this.

Kind regards
Marius Barnard
Excel Trainer


 

VBA tip:

Good coding practice

It is important that you always comment the VBA code that you write. By doing this it will make the code much easier to read, as both yourself and other people will be able to see what the code is doing or meant to be doing. This is very important if there is more than one person who writes code in the company as you may have different styles of coding and may not really understand what the other person is trying to do. Also if you write some code and then do not touch it for a year or so you may actually forget what it is meant to be doing. so it is very important to include comments throughout your code and try and make sure that they are as useful as possible

View all VBA hints and tips


Server loaded in 0.09 secs.