ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to use VBA (https://www.excelbanter.com/excel-programming/282629-how-use-vba.html)

Mark Brantana

How to use VBA
 
I am used to using VB, which I am now learning. What I don't understand is
VBA. How do the objects you place on the desktop run if you never compile
anything. If I put a button, for example, on the desktop, I can write code
in it, but it still remains in the "form" mode.

Is there a step I need to know about to integrate this button with the
spreadsheet and make it work?

Mark



RADO[_3_]

How to use VBA
 
there are 2 types of controls in vba - form and activeX.
ActiveX can be programmed the same way as in VB. Just don't forget to switch
from design mode. Form controls are simpler, they can only run assigned
macro.

Form controls are on the Form toolbar, ActiveX - on Control ToolBox toolbar.

RADO


"Mark Brantana" wrote in message
nk.net...
I am used to using VB, which I am now learning. What I don't understand

is
VBA. How do the objects you place on the desktop run if you never compile
anything. If I put a button, for example, on the desktop, I can write

code
in it, but it still remains in the "form" mode.

Is there a step I need to know about to integrate this button with the
spreadsheet and make it work?

Mark






All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com