Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Set certain things when opening the Workbook

How can I automatically have the following things happen when the user opens
a workbook:

1) Check the Add-in "AnalysisTool Pak" box so it is accessible to the user
(accessed manually via Tools Addins).

2) Put the cursor in the 1st cell of the 1st blank row (for data entry).

--
Thanks, JoAnn
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,441
Default Set certain things when opening the Workbook

JoAnn,

Paste this into the codemodule of the ThisWorkbook object: change the "Sheet1" to the name of the
sheet that you want selected.


Private Sub Workbook_Open()
If Not AddIns("Analysis ToolPak").Installed Then
AddIns("Analysis ToolPak").Installed = True
End If
Worksheets("Sheet1").Select
Cells(Rows.Count, 1).End(xlUp)(2).Select
End Sub


HTH,
Bernie
MS Excel MVP


"JoAnn" wrote in message
...
How can I automatically have the following things happen when the user opens
a workbook:

1) Check the Add-in "AnalysisTool Pak" box so it is accessible to the user
(accessed manually via Tools Addins).

2) Put the cursor in the 1st cell of the 1st blank row (for data entry).

--
Thanks, JoAnn



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Set certain things when opening the Workbook

This works great but we have since added a new 1st column for an
automatically assigned number.

How do I change the formula you provided to now go to the first row with a
blank 2nd cell?
--
JoAnn


"Bernie Deitrick" wrote:

JoAnn,

Paste this into the codemodule of the ThisWorkbook object: change the "Sheet1" to the name of the
sheet that you want selected.


Private Sub Workbook_Open()
If Not AddIns("Analysis ToolPak").Installed Then
AddIns("Analysis ToolPak").Installed = True
End If
Worksheets("Sheet1").Select
Cells(Rows.Count, 1).End(xlUp)(2).Select
End Sub


HTH,
Bernie
MS Excel MVP


"JoAnn" wrote in message
...
How can I automatically have the following things happen when the user opens
a workbook:

1) Check the Add-in "AnalysisTool Pak" box so it is accessible to the user
(accessed manually via Tools Addins).

2) Put the cursor in the 1st cell of the 1st blank row (for data entry).

--
Thanks, JoAnn




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,441
Default Set certain things when opening the Workbook

Based on column B?

Cells(Rows.Count, 2).End(xlUp)(2).Select

HTH,
Bernie
MS Excel MVP


"JoAnn" wrote in message
...
This works great but we have since added a new 1st column for an
automatically assigned number.

How do I change the formula you provided to now go to the first row with a
blank 2nd cell?
--
JoAnn


"Bernie Deitrick" wrote:

JoAnn,

Paste this into the codemodule of the ThisWorkbook object: change the "Sheet1" to the name of the
sheet that you want selected.


Private Sub Workbook_Open()
If Not AddIns("Analysis ToolPak").Installed Then
AddIns("Analysis ToolPak").Installed = True
End If
Worksheets("Sheet1").Select
Cells(Rows.Count, 1).End(xlUp)(2).Select
End Sub


HTH,
Bernie
MS Excel MVP


"JoAnn" wrote in message
...
How can I automatically have the following things happen when the user opens
a workbook:

1) Check the Add-in "AnalysisTool Pak" box so it is accessible to the user
(accessed manually via Tools Addins).

2) Put the cursor in the 1st cell of the 1st blank row (for data entry).

--
Thanks, JoAnn






  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Set certain things when opening the Workbook

Many thanks ... works great!
--
JoAnn


"Bernie Deitrick" wrote:

Based on column B?

Cells(Rows.Count, 2).End(xlUp)(2).Select

HTH,
Bernie
MS Excel MVP


"JoAnn" wrote in message
...
This works great but we have since added a new 1st column for an
automatically assigned number.

How do I change the formula you provided to now go to the first row with a
blank 2nd cell?
--
JoAnn


"Bernie Deitrick" wrote:

JoAnn,

Paste this into the codemodule of the ThisWorkbook object: change the "Sheet1" to the name of the
sheet that you want selected.


Private Sub Workbook_Open()
If Not AddIns("Analysis ToolPak").Installed Then
AddIns("Analysis ToolPak").Installed = True
End If
Worksheets("Sheet1").Select
Cells(Rows.Count, 1).End(xlUp)(2).Select
End Sub


HTH,
Bernie
MS Excel MVP


"JoAnn" wrote in message
...
How can I automatically have the following things happen when the user opens
a workbook:

1) Check the Add-in "AnalysisTool Pak" box so it is accessible to the user
(accessed manually via Tools Addins).

2) Put the cursor in the 1st cell of the 1st blank row (for data entry).

--
Thanks, JoAnn






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


Similar Threads
Thread Thread Starter Forum Replies Last Post
when opening an Excel Workbook, another blank workbook also opens Gord Dibben Excel Discussion (Misc queries) 0 October 12th 07 09:49 PM
when opening an Excel Workbook, another blank workbook also opens spmu Excel Discussion (Misc queries) 0 October 12th 07 01:46 PM
Opening workbook Todd D. Excel Discussion (Misc queries) 4 September 14th 06 07:10 PM
Help!!!! Strange things are happening to a Shared Workbook!! Sarahp Excel Worksheet Functions 0 February 6th 06 01:05 PM
how do i minimize/maximize a workbook from vba? I want to minimize it durring processing to speed things up a bit Daniel Excel Worksheet Functions 2 July 9th 05 03:35 AM


All times are GMT +1. The time now is 09:58 AM.

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

About Us

"It's about Microsoft Excel"