Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jk jk is offline
external usenet poster
 
Posts: 109
Default Error on macro

I created a macro to hide a sheet and by mistake applied it to all
workbooks-----Result---Any new workbook opens as a Personal.xls and only
contains one sheet even though the general options is set to open on 3
sheets.How can i undo my macro error?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Error on macro

delete the macro out of your personnnal.xls


"jk" wrote:

I created a macro to hide a sheet and by mistake applied it to all
workbooks-----Result---Any new workbook opens as a Personal.xls and only
contains one sheet even though the general options is set to open on 3
sheets.How can i undo my macro error?

  #3   Report Post  
Posted to microsoft.public.excel.programming
jk jk is offline
external usenet poster
 
Posts: 109
Default Error on macro

That is a problem as well since i already deleted the macro within the
workbook i was working with.I have looked into the workbooks i have and none
contain the macro.Yet as i have stated before, on every new workbook open,
it opens as a personal xls.Each existing workbook opens as a personal xls but
reverts to its orginal format of 7 or 8 sheets.How do i get this macro out?

"Rich" wrote:

delete the macro out of your personnnal.xls


"jk" wrote:

I created a macro to hide a sheet and by mistake applied it to all
workbooks-----Result---Any new workbook opens as a Personal.xls and only
contains one sheet even though the general options is set to open on 3
sheets.How can i undo my macro error?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error on macro

Have you tried rewritting the macro in Personal.xls to show the sheet? I
recently encountered a similar situation where I had to rewrite a Call event
in the original spreadsheet to change the property .onaction = "Name of
Procedure" to .onaction = "" . This worked for me, but as a warning I have
limited VB programming skills (self taught/trial and errror!).

"jk" wrote:

I created a macro to hide a sheet and by mistake applied it to all
workbooks-----Result---Any new workbook opens as a Personal.xls and only
contains one sheet even though the general options is set to open on 3
sheets.How can i undo my macro error?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error on macro

As a clarification on my reply...before I changed the call even to .onaction
= "", I had to fix the macro in the original call event. In my case I had to
emulate the "delete" control. In your case as I indicated, you will likely
need to show the sheet.

"Virtual Hillbilly" wrote:

Have you tried rewritting the macro in Personal.xls to show the sheet? I
recently encountered a similar situation where I had to rewrite a Call event
in the original spreadsheet to change the property .onaction = "Name of
Procedure" to .onaction = "" . This worked for me, but as a warning I have
limited VB programming skills (self taught/trial and errror!).

"jk" wrote:

I created a macro to hide a sheet and by mistake applied it to all
workbooks-----Result---Any new workbook opens as a Personal.xls and only
contains one sheet even though the general options is set to open on 3
sheets.How can i undo my macro error?



  #6   Report Post  
Posted to microsoft.public.excel.programming
jk jk is offline
external usenet poster
 
Posts: 109
Default Error on macro

Hi,

I am new to this and i see that the orginal where i created and deleted the
macro workook opens with a personal workbook containing one sheet.I looked
uder tools ..macro but of course it does not show since i deleted it.What
else can i do to remove this?


"Virtual Hillbilly" wrote:

As a clarification on my reply...before I changed the call even to .onaction
= "", I had to fix the macro in the original call event. In my case I had to
emulate the "delete" control. In your case as I indicated, you will likely
need to show the sheet.

"Virtual Hillbilly" wrote:

Have you tried rewritting the macro in Personal.xls to show the sheet? I
recently encountered a similar situation where I had to rewrite a Call event
in the original spreadsheet to change the property .onaction = "Name of
Procedure" to .onaction = "" . This worked for me, but as a warning I have
limited VB programming skills (self taught/trial and errror!).

"jk" wrote:

I created a macro to hide a sheet and by mistake applied it to all
workbooks-----Result---Any new workbook opens as a Personal.xls and only
contains one sheet even though the general options is set to open on 3
sheets.How can i undo my macro error?

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error on macro

You can try running the following macro in Personal.xls:

SheetsInNewWorkbook = 3

Not sure if that will work, but its worth trying!



"jk" wrote:

I created a macro to hide a sheet and by mistake applied it to all
workbooks-----Result---Any new workbook opens as a Personal.xls and only
contains one sheet even though the general options is set to open on 3
sheets.How can i undo my macro error?

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
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
naming tab macro error runtime error 1004 D Excel Programming 3 February 28th 05 01:32 AM
Macro 'Automation error' with ChemOffice Excel macro Stew Excel Programming 0 October 27th 03 08:26 PM


All times are GMT +1. The time now is 08:43 AM.

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

About Us

"It's about Microsoft Excel"