ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   set to display cursur on cell A1 (https://www.excelbanter.com/excel-worksheet-functions/245650-set-display-cursur-cell-a1.html)

Anoop

set to display cursur on cell A1
 
i want to display cursur on cell A1 in evry time when i open a workbook,
which was done some work by me

Jacob Skaria

set to display cursur on cell A1
 
Set the security level to low/medium in (Tools|Macro|Security). From workbook
press Alt+F11 to launch VBE (Visual Basic Editor). From the left treeview
search for the workbook name and click on + to expand it. Within that you
should see the following

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
This Workbook

Double click 'This WorkBook' and paste the below code to the right code pane.

Private Sub Workbook_Open()
Range("A1").Activate
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Anoop" wrote:

i want to display cursur on cell A1 in evry time when i open a workbook,
which was done some work by me



All times are GMT +1. The time now is 09:22 PM.

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