You are here:

Excel/Use Excel Shrotcuts in VBA

Advertisement


Question
Hello,
I want to use the excel shortcuts such as Ctrl + C, Ctrl + V, Ctrl + A etc...anything in my VBA code, Is that possible?

Regards
Machhu

Answer
Hi Machhu,

Do you mean what you want to copy, cut and paste data using Excel VBA?
If so, you can certainly do them.

It can be as simple as the following VBA code.

Range("A1").Copy Range("B1")
Range("B1").Cut Range("C1")

Cheers.

Regards,
Victor LAN
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Victor Lan

Expertise

I can assist you in manipulating and filtering data, creating and using formulas, pivot tables, and writing VBA to solve problems and automate processes. I can also research and find a solution for almost anything in Excel for you.

Experience

3 years of professional Excel experience. Currently working for a global Investment Bank.

Education/Credentials
BSc Banking and Finance (First Class Honours), University of London. Diploma in Electronics, Computer and Communication Engineering, Singapore Polytechnic.

©2012 About.com, a part of The New York Times Company. All rights reserved.