#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Excel VBA

The code looks like this:

sub Sum_of_two_cells()
msgbox range("a1").value + range("b1").value
end sub

You can use the Control Toolbox on the Visual Basic toolbar to assign
the macro to a button; I prefer to click (on the Excel menu) View
Toolbars Forms and use the command button from that toolbar.


Good luck with it!
Dave O
Eschew obfuscation
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"