#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11
Default macros

i needed a program to set up number combinations and somebody gave me one
my only problem is i dont know how to use it
i cut and pasted it to visual basic and now i dont know what to do
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default macros

Joel provided two subs......the Sub Cominations() which runs

Sub recursive(ByVal Level As Integer, ByVal Position As Integer)

Since you're not familiar with VBA and macros, see David McRitchie's site for
more on "getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run or edit the macro by going to ToolMacroMacros.

You can also assign this macro to a button or a shortcut key combo.


Gord Dibben MS Excel MVP

On Sun, 14 Oct 2007 10:45:00 -0700, lifeguardernie
wrote:

i needed a program to set up number combinations and somebody gave me one
my only problem is i dont know how to use it
i cut and pasted it to visual basic and now i dont know what to do


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,123
Default macros

See also
http://www.rondebruin.nl/code.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Gord Dibben" <gorddibbATshawDOTca wrote in message ...
Joel provided two subs......the Sub Cominations() which runs

Sub recursive(ByVal Level As Integer, ByVal Position As Integer)

Since you're not familiar with VBA and macros, see David McRitchie's site for
more on "getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run or edit the macro by going to ToolMacroMacros.

You can also assign this macro to a button or a shortcut key combo.


Gord Dibben MS Excel MVP

On Sun, 14 Oct 2007 10:45:00 -0700, lifeguardernie
wrote:

i needed a program to set up number combinations and somebody gave me one
my only problem is i dont know how to use it
i cut and pasted it to visual basic and now i dont know what to do


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default macros

Very nice Ron

Didn't know you had that page.

I will refer posters to it in future.


Gord

On Sun, 14 Oct 2007 20:34:09 +0200, "Ron de Bruin"
wrote:

See also
http://www.rondebruin.nl/code.htm


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,123
Default macros

Hi Gord

Didn't know you had that page.


To many people have problems to paste the code in the correct place.

I hope it is clear this way with the screenshots
If you miss something let me know


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Gord Dibben" <gorddibbATshawDOTca wrote in message ...
Very nice Ron

Didn't know you had that page.

I will refer posters to it in future.


Gord

On Sun, 14 Oct 2007 20:34:09 +0200, "Ron de Bruin"
wrote:

See also
http://www.rondebruin.nl/code.htm


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 Stevens Setting up and Configuration of Excel 1 August 21st 07 02:27 PM
what do you mean by macros?What it does? Macros Excel Discussion (Misc queries) 1 July 13th 07 12:57 PM
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
"openinf file..."ENABLE MACROS...DISABLE MACROS" F. Lawrence Kulchar Excel Discussion (Misc queries) 3 September 12th 06 10:33 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 06:01 AM.

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"