Blank worksheets opened up every time Excel starts - accidentally created after splitting Spreadsheet using VBA code -


i need bit of xcel 2010.

i have spreadsheet budget workbook in xcel 2010 had 6 tabs of worksheets. needed make copy of 1 of worksheets pass on not allowed see other worksheets.

i used vba code shown below split workbook , worked fine. but, since doing so, every time open any xcel file 3 blank worksheets open @ same time , labeled tabelle1.xls, tabelle2.xls , tabelle3.xls.

i thought using vba code (see below other code) delete module take care of did not. there no code/module @ if open visual basic still 3 blank worksheets open separately whatever xcel file open up. 3 blank worksheets have .xls file extension version of ms office have uses .xlsx.

other info: using windows 7, work computer , not know vba coding myself. looking quick fix googling , got myself in trouble.

the code split workbook

sub splitbook() mypath = thisworkbook.path each sht in thisworkbook.sheets sht.copy activesheet.cells.copy activesheet.cells.pastespecial paste:=xlpastevalues activesheet.cells.pastespecial paste:=xlpasteformats activeworkbook.saveas _ filename:=mypath & "\" & sht.name & ".xls" activeworkbook.close savechanges:=false next sht end sub 

the code used delete module:

sub deletemodule()     dim vbproj vbide.vbproject     dim vbcomp vbide.vbcomponent      set vbproj = activeworkbook.vbproject     set vbcomp = vbproj.vbcomponents("module1")     vbproj.vbcomponents.remove vbcomp end sub 

sectionbreak

your symptoms indicative of workbook being in xlstart folder (an 'autorun' folder). reason names being "tabelle" source of workbook german locale.

any workbook in folder opened whenever excel application starts up. folder typically used place personal macro workbooks macros within automatically available when working on different workbooks.

in case, appears unintentional. check folder at, typically:

win7/8: c:\users\[username]\appdata\roaming\microsoft\excel\xlstart

winxp: c:\documents , settings\[username]\application data\microsoft\excel\xlstart

and clear out files not expecting there.

i refer http://office.microsoft.com/en-gb/excel-help/customize-how-excel-starts-hp010197489.aspx more details on how can customise templates , workbooks excel uses achieve helpful results.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -