![]() |
Help to the first sheet
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. |
Help to the first sheet
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. |
Help to the first sheet
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. |
Help to the first sheet
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. |
Help to the first sheet
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. |
All times are GMT +1. The time now is 03:32 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com