Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXCEL QUERY

Status
Not open for further replies.

arun17

Mechanical
Joined
Apr 16, 2002
Messages
44
Location
IN
Deat Friends,
I want to write an application using macros in Excel. But I want to control the no of rows and columns when the worksheet is opened. How it can be achieved using macros "Knowledge is power"
 
Try this, set the scroll area when the sheet is opened. It restricts the effective size of the sheet and the operator can only use the fields you set , i.e. "a1:f10".

Add this to the "ThisWorkbook" Open Event

Worksheets(1).ScrollArea = "a1:f10"

Regards,

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top