#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default Macros

Hi.
I have 2 questions:
1. how does one know the Visual Basic codes to create a macro?
2. I have a workbook with a macro that is set to protect all the sheets and
unprotect them, (i just copied the macro from another workbook) however it
keeps saying the password is incorrect & is failing to run. in addition, it
now wont let me unprotect the spreadsheet manually (tools, protection,
unprotect sheet) as it doesnt recognise the password. I have been using this
password in the past to unprotect the workbook! Is there any way i can
'Hack' into the workbook?!
--
Lois
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Macros

--
__________________________________
HTH

Bob

"Lois" wrote in message
...
Hi.
I have 2 questions:
1. how does one know the Visual Basic codes to create a macro?



Experience and practice. You can usually use the macro recorder to get you
started.


2. I have a workbook with a macro that is set to protect all the sheets
and
unprotect them, (i just copied the macro from another workbook) however it
keeps saying the password is incorrect & is failing to run. in addition,
it
now wont let me unprotect the spreadsheet manually (tools, protection,
unprotect sheet) as it doesnt recognise the password. I have been using
this
password in the past to unprotect the workbook! Is there any way i can
'Hack' into the workbook?!



See http://www.mcgimpsey.com/excel/removepwords.html


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Macros


For question 1, Buy a good book, some thing like Excel Step by Step, but
a really good start would be to us the macro recorder to record an
everyday task then take a look at the code!, Excel will give you a lot
of code that you don't need but it will give you a good start.

As for question 2, look at the macro for the protect/unprotect
portions, directly after .Protect you should see Password:= this will be
the password to unprotect the sheets. If you do not have access to the
code project then i suggest you have a word with the author of their
workbook.

Lois;243703 Wrote:
Hi.
I have 2 questions:
1. how does one know the Visual Basic codes to create a macro?
2. I have a workbook with a macro that is set to protect all the sheets
and
unprotect them, (i just copied the macro from another workbook) however
it
keeps saying the password is incorrect & is failing to run. in
addition, it
now wont let me unprotect the spreadsheet manually (tools, protection,
unprotect sheet) as it doesnt recognise the password. I have been using
this
password in the past to unprotect the workbook! Is there any way i can
'Hack' into the workbook?!
--
Lois



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=67951

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
Macros: can you copy macros from one doc to another? Roady Excel Discussion (Misc queries) 1 June 12th 08 05:47 PM
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Macros warning always shows up, even if all macros removed Joe M Excel Discussion (Misc queries) 1 December 20th 07 04:45 AM
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM


All times are GMT +1. The time now is 12:24 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"