Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
In every first of excel the cover sheet message should be inputted. whenever I open the excel file automatically the first sheet should contain the cover sheet information always. Could you please guide how to automate this when ever I open the spreadsheet the first sheet should be with the cover sheet information. Regards, Igneshwara reddy. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the VB Editor there is a module at the bottom of the list of sheets that
is called ThisWorkbook. Click on it and insert the following code Private Sub Workbook_Open() Sheets("MyFirstSheet").Activate End Sub Change "MyFirstSheet" to the name of your first worksheet --keeping the quotation marks. "Igneshwara reddy" wrote: Hi, In every first of excel the cover sheet message should be inputted. whenever I open the excel file automatically the first sheet should contain the cover sheet information always. Could you please guide how to automate this when ever I open the spreadsheet the first sheet should be with the cover sheet information. Regards, Igneshwara reddy. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I hope you have not understood my requirement, apologize for that. I having a coding which I have done the macros to run for my work, now whenever I open any spreadsheet (not specific) the cursor has to move extreme left (irrespective of the sheets it has and wherever the cursor is) and it has to insert a sheet. There onwards it has to rename the sheet as "Verson" and my macros should run in that spreadsheet. Let me know how it can be done. Regards, Igneshwara reddy. "cush" wrote: In the VB Editor there is a module at the bottom of the list of sheets that is called ThisWorkbook. Click on it and insert the following code Private Sub Workbook_Open() Sheets("MyFirstSheet").Activate End Sub Change "MyFirstSheet" to the name of your first worksheet --keeping the quotation marks. "Igneshwara reddy" wrote: Hi, In every first of excel the cover sheet message should be inputted. whenever I open the excel file automatically the first sheet should contain the cover sheet information always. Could you please guide how to automate this when ever I open the spreadsheet the first sheet should be with the cover sheet information. Regards, Igneshwara reddy. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
OK Let's take this one step at a time
1.whenever I open any spreadsheet (not specific) the cursor has to move extreme left (irrespective of the sheets it has and wherever the cursor is) Try this 'Move to the left 10 "screen widths" ActiveWindow.LargeScroll (ToLeft:=10) 2. and it has to insert a sheet. There onwards it has to rename the sheet as "Verson" Worksheets.Add Activesheet.Name="Verson" and my macros should run in that spreadsheet. You can make things happen in this worksheet by starting with: With Sheets("Verson") .Activate .Cells(3,7).Select Etc End With "Igneshwara reddy" wrote: Hi, I hope you have not understood my requirement, apologize for that. I having a coding which I have done the macros to run for my work, now whenever I open any spreadsheet (not specific) the cursor has to move extreme left (irrespective of the sheets it has and wherever the cursor is) and it has to insert a sheet. There onwards it has to rename the sheet as "Verson" and my macros should run in that spreadsheet. Let me know how it can be done. Regards, Igneshwara reddy. "cush" wrote: In the VB Editor there is a module at the bottom of the list of sheets that is called ThisWorkbook. Click on it and insert the following code Private Sub Workbook_Open() Sheets("MyFirstSheet").Activate End Sub Change "MyFirstSheet" to the name of your first worksheet --keeping the quotation marks. "Igneshwara reddy" wrote: Hi, In every first of excel the cover sheet message should be inputted. whenever I open the excel file automatically the first sheet should contain the cover sheet information always. Could you please guide how to automate this when ever I open the spreadsheet the first sheet should be with the cover sheet information. Regards, Igneshwara reddy. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Cush,
The information was helpful but I am receiving an error when I am using ActiveWindow.LargeScroll (ToLeft:=10) Compile Error: Expected:= Not able to understand what is this referring too.. Please guide me on this. Regards, Igneshwara reddy. "cush" wrote: OK Let's take this one step at a time 1.whenever I open any spreadsheet (not specific) the cursor has to move extreme left (irrespective of the sheets it has and wherever the cursor is) Try this 'Move to the left 10 "screen widths" ActiveWindow.LargeScroll (ToLeft:=10) 2. and it has to insert a sheet. There onwards it has to rename the sheet as "Verson" Worksheets.Add Activesheet.Name="Verson" and my macros should run in that spreadsheet. You can make things happen in this worksheet by starting with: With Sheets("Verson") .Activate .Cells(3,7).Select Etc End With "Igneshwara reddy" wrote: Hi, I hope you have not understood my requirement, apologize for that. I having a coding which I have done the macros to run for my work, now whenever I open any spreadsheet (not specific) the cursor has to move extreme left (irrespective of the sheets it has and wherever the cursor is) and it has to insert a sheet. There onwards it has to rename the sheet as "Verson" and my macros should run in that spreadsheet. Let me know how it can be done. Regards, Igneshwara reddy. "cush" wrote: In the VB Editor there is a module at the bottom of the list of sheets that is called ThisWorkbook. Click on it and insert the following code Private Sub Workbook_Open() Sheets("MyFirstSheet").Activate End Sub Change "MyFirstSheet" to the name of your first worksheet --keeping the quotation marks. "Igneshwara reddy" wrote: Hi, In every first of excel the cover sheet message should be inputted. whenever I open the excel file automatically the first sheet should contain the cover sheet information always. Could you please guide how to automate this when ever I open the spreadsheet the first sheet should be with the cover sheet information. Regards, Igneshwara reddy. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel sheet bootom half sheet goes behind top part of sheet | Excel Worksheet Functions | |||
Duplicate sheet, autonumber sheet, record data on another sheet | Excel Worksheet Functions | |||
Copying cells from on sheet to another sheet (via sheet module) | Excel Programming | |||
relative sheet references ala sheet(-1)!B11 so I can copy a sheet. | Excel Discussion (Misc queries) | |||
Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B | Excel Programming |