Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to show old macros?

Hello newsgroup,

I've got an old worksheet from Excel 4.0 with macros in the old speech
before VBA. Is there a possibility to show this old macros? The VB
Editor only shows VBA macros...


Peter

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to show old macros?

You need to unhide the macro sheet that contains the macros.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



wrote in message
oups.com...
Hello newsgroup,

I've got an old worksheet from Excel 4.0 with macros in the old
speech
before VBA. Is there a possibility to show this old macros? The
VB
Editor only shows VBA macros...


Peter



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to show old macros?

Hello Chip,

all sheets are visible. The problem is that the macros are not written
in VBA, but written in XLM.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to show old macros?

XLM macros are stored in special worksheets. Use the following
code to make all sheets, including XLM macro sheets, visible.
Then you can delete the sheet.

Sub AAA()
Dim s As Object
For Each s In ThisWorkbook.Sheets
s.Visible = True
Next s
End Sub

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





wrote in message
ps.com...
Hello Chip,

all sheets are visible. The problem is that the macros are not
written
in VBA, but written in XLM.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to show old macros?

I have used your code, but nothing happens. The numer of sheets remains
equal. There is no sheet with code. I'm using Excel 2002



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to show old macros?

Do you have any separate workbooks with an .xlm extension?

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
I have used your code, but nothing happens. The numer of sheets remains
equal. There is no sheet with code. I'm using Excel 2002



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to show old macros?

I have only one xls file. I have put it on my private computer and it
worked too - The macros are within this xls.

It seems that the only possiblity to read this old XLM code is to
install office97, or a later version of MS office!?

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to show old macros?

You can read XLM code in any version of Excel.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


wrote in message
ups.com...
I have only one xls file. I have put it on my private computer
and it
worked too - The macros are within this xls.

It seems that the only possiblity to read this old XLM code is
to
install office97, or a later version of MS office!?



  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to show old macros?

But how to show/edit the code? That the macros could be executed is
known. Can you see the whole xlm macro in your VBA Editor? (And edit
them?)

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to show old macros?

Forget completely about the VBA Editor when it comes to XLM
macros. The VBA Editor has nothing whatsoever to do with XLM
macros. XLM macros are stored on special worksheets called macro
sheets. You edit them on the macro sheet.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

wrote in message
oups.com...
But how to show/edit the code? That the macros could be
executed is
known. Can you see the whole xlm macro in your VBA Editor? (And
edit
them?)





  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to show old macros?

How to get this macro sheets?
1. I make a double click on the xls file.
2. I enable all macro warnings.
3. I see 6 tables with data. There are no code lines
4. I go to the VBA Editor, execute your code to show all tables, but
nothing more comes visible!?

Where can I edit the xlm macros? Where are theses special worksheets?

  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to show old macros?

In a new workbook, right click on a sheet tab and select Insert and then
select MS Excel 4.0 Macro

This is where xl4 macro code would be placed.


In the original workbook,
Are you sure the code is not just protected. Can you expand the workbook
project in the project manager in the vbe - it expands and shows only sheet
entries, no modules.

If you want to send me the file, I will look at it.



--
Regards,
Tom Ogilvy




wrote in message
oups.com...
How to get this macro sheets?
1. I make a double click on the xls file.
2. I enable all macro warnings.
3. I see 6 tables with data. There are no code lines
4. I go to the VBA Editor, execute your code to show all tables, but
nothing more comes visible!?

Where can I edit the xlm macros? Where are theses special worksheets?



  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to show old macros?

Finally the problem is solved. This VBA macro will show the XLM macros:

Private Sub ShowExcel4MacroSheets
Dim i As Long

For i = 1 To Application.Excel4MacroSheets.Count
Application.Excel4MacroSheets(i).Visible = True
Next i

For i = 1 To Application.Excel4IntlMacroSheets.Count
Application.Excel4IntlMacroSheets(i).Visible = True
Next i
End Sub

Without Toms and Chips help I wouldnt solve this problem. Thanks a lot.
:-))))

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
how do we get 2003 .xlb toolbars and custom macros to show in 07 bigdeal Excel Discussion (Misc queries) 1 June 6th 10 01:24 AM
How do I get my macros from an XLA file to show in Tools Macro Harlan Grove[_2_] Excel Worksheet Functions 0 June 28th 09 11:34 PM
clearing macros in excel when none show up lee Excel Discussion (Misc queries) 2 October 19th 06 05:33 PM
Why do macros show up while opening document, but were deleted? Ralph Orth Excel Discussion (Misc queries) 6 February 16th 06 07:07 PM
Macros in Personal.xls don't show up in other wksheets bethg7 Setting up and Configuration of Excel 4 August 2nd 05 01:40 AM


All times are GMT +1. The time now is 12:42 PM.

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"