View Single Post
  #2   Report Post  
Tushar Mehta
 
Posts: n/a
Default

In XL turn on the macro recorder (Tools | Macro Record new macro...),
use the UI to do whatever it is you want to do, and turn off the
recorder. XL will give you the necessary code. You can then
streamline/customize it. See
Beyond Excel's recorder
http://www.tushar-
mehta.com/excel/vba/beyond_the_macro_recorder/index.htm


--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
I am trying to learn visual basic through example. Can somone help me solve
this problem?

I have two different Excel workbooks, both located on my desktop.

The first is named Book1.xls The second is Book2.xls

On Sheet 1 of Book1, under column A (cells 2 through 11) I have the numbers
1 through 10.

I would like to write a macro that copies the values in these cells and
pastes them into sheet 1 of Book2, in the same cells. Also, I would like for
the cells in book 2 to be red, and the font to be bold and white.

Please help. Thanks.