Macro

Marky

New Member
Joined
Feb 22, 2002
Messages
3
Is there a macro I can use, that opens an excelsheet alway on the same sheet of a workbook.??

Second question: Is it possible to write a macro that lets you always move from cell to cell by useing tab Within a range for example Cell A1:D10.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
The first one will take you to cell A10 if you put it on the This Workbook:

Sub Workbook_Open()
Application.Goto Reference:="Sheet1!RC"
End Sub

Put this one on the worksheet.

Sub GtRng()
Range("A1:D10").Select
End Sub

Anytime you select a range, then do your entry, it will remain within your range, whether you hit enter or tab, until you click outside of that range.
 
Upvote 0
I'll leave the second question to someone else because I'm not entirely sure of my solution.

As to the first, you can use hyperlinks to goto a specific location in a workbook. Check out the Excel help on Hyperlinks to do this.
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,373
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top