Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default Macro To Make Workbook Demonstrate Itself

I want to set up a macro which will perform various actions - mostly
simple, like typing this, that or the other into cells, deleting cell
entries, etc. I'm a complete beginner with VBA, so I want to do the
macro by recording, for example:

ActiveCell.FormulaR1C1 = "a"
Range("C7").Select
ActiveCell.FormulaR1C1 = "b"
Range("C8").Select
ActiveCell.FormulaR1C1 = "c"
Range("C9").Select
ActiveCell.FormulaR1C1 = "d"
Range("C10").Select
ActiveCell.FormulaR1C1 = "e"
Range("C11").Select

What I'd like to do after I've recorded it (eg as above) is insert
pauses and make message boxes appear and disappear at various places
and times. Can anybody tell me how?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Macro To Make Workbook Demonstrate Itself

MsgBox "We will start by doing something", vbOKOnly, "Excel demo"
Range("C6").Value = "a"
Range("C7").Value = "b"
Range("C8").Value = "c"
MsgBox "Now we do something else", vbOKOnly, "Excel demo"
Range("C9").Value = "d"
Range("C10").Value = "e"
'etc


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"robzrob" wrote in message
...
I want to set up a macro which will perform various actions - mostly
simple, like typing this, that or the other into cells, deleting cell
entries, etc. I'm a complete beginner with VBA, so I want to do the
macro by recording, for example:

ActiveCell.FormulaR1C1 = "a"
Range("C7").Select
ActiveCell.FormulaR1C1 = "b"
Range("C8").Select
ActiveCell.FormulaR1C1 = "c"
Range("C9").Select
ActiveCell.FormulaR1C1 = "d"
Range("C10").Select
ActiveCell.FormulaR1C1 = "e"
Range("C11").Select

What I'd like to do after I've recorded it (eg as above) is insert
pauses and make message boxes appear and disappear at various places
and times. Can anybody tell me how?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default Macro To Make Workbook Demonstrate Itself

On Jul 16, 12:54*pm, "Bob Phillips" wrote:
* * MsgBox "We will start by doing something", vbOKOnly, "Excel demo"
* * Range("C6").Value = "a"
* * Range("C7").Value = "b"
* * Range("C8").Value = "c"
* * MsgBox "Now we do something else", vbOKOnly, "Excel demo"
* * Range("C9").Value = "d"
* * Range("C10").Value = "e"
* * 'etc

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"robzrob" wrote in message

...



I want to set up a macro which will perform various actions - mostly
simple, like typing this, that or the other into cells, deleting cell
entries, etc. *I'm a complete beginner with VBA, so I want to do the
macro by recording, for example:


* *ActiveCell.FormulaR1C1 = "a"
* *Range("C7").Select
* *ActiveCell.FormulaR1C1 = "b"
* *Range("C8").Select
* *ActiveCell.FormulaR1C1 = "c"
* *Range("C9").Select
* *ActiveCell.FormulaR1C1 = "d"
* *Range("C10").Select
* *ActiveCell.FormulaR1C1 = "e"
* *Range("C11").Select


What I'd like to do after I've recorded it (eg as above) is insert
pauses and make message boxes appear and disappear at various places
and times. *Can anybody tell me how?- Hide quoted text -


- Show quoted text -


Thanks Bob, that'll give me something to play with.
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
Have problem in Manipulating Workbook Object and make macro shortest as possible Irmann Excel Worksheet Functions 0 February 5th 08 09:32 AM
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Runing a macro in a workbook from another macro in other workbook dhatul Excel Discussion (Misc queries) 0 January 13th 06 06:27 AM
Help:Running a macro in one excel workbook from another workbook R Kapoor Setting up and Configuration of Excel 3 January 13th 06 05:11 AM
Issuing macro in workbook from separate workbook Nigel Excel Discussion (Misc queries) 1 May 16th 05 05:46 PM


All times are GMT +1. The time now is 06:05 PM.

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

About Us

"It's about Microsoft Excel"