PC Review


Reply
Thread Tools Rate Thread

how do i use a macro

 
 
Oshtruck user
Guest
Posts: n/a
 
      21st Jul 2008
I am looking for a macro that will run through a selected range of cells that
will stop at each cell and wait for a keyboard button to be pressed, and
depending on the button pressed will do different types of formatting. Can
anyone help. I don't want this to work with a Dialog box or anything, I want
it to work with keyboard buttons. For example the first cell in the range it
waits for me to press a button. I press the b button and it bolds it. The
second cell in the range it waits for me to press a button. I press the i
button and it puts the cell in italics. And so on..
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      21st Jul 2008
Macros do not pause to wait for keyboard input as you are requesting. There
are event that you can catch such as change, selection change or such. That
bieng said Ctrl+B is bold and Ctrl+I is italics...
--
HTH...

Jim Thomlinson


"Oshtruck user" wrote:

> I am looking for a macro that will run through a selected range of cells that
> will stop at each cell and wait for a keyboard button to be pressed, and
> depending on the button pressed will do different types of formatting. Can
> anyone help. I don't want this to work with a Dialog box or anything, I want
> it to work with keyboard buttons. For example the first cell in the range it
> waits for me to press a button. I press the b button and it bolds it. The
> second cell in the range it waits for me to press a button. I press the i
> button and it puts the cell in italics. And so on..

 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      21st Jul 2008
The only way I can think of for what you say to work is to use an InputBox.
Basically you would have a Worksheet_SelectionChange event macro that would
do something when you click on a cell in a specific range (chosen by you).
What it would do is present an InputBox and ask you to enter something
(what??). If you enter a "b" the macro would bold the cell, an "i" and it
would italicize the cell, and so forth. Would this work for you? HTH Otto
"Oshtruck user" <(E-Mail Removed)> wrote in message
news:6E5EFCE6-6C20-499C-84C7-(E-Mail Removed)...
>I am looking for a macro that will run through a selected range of cells
>that
> will stop at each cell and wait for a keyboard button to be pressed, and
> depending on the button pressed will do different types of formatting.
> Can
> anyone help. I don't want this to work with a Dialog box or anything, I
> want
> it to work with keyboard buttons. For example the first cell in the range
> it
> waits for me to press a button. I press the b button and it bolds it.
> The
> second cell in the range it waits for me to press a button. I press the i
> button and it puts the cell in italics. And so on..



 
Reply With Quote
 
Jim Thomlinson
Guest
Posts: n/a
 
      21st Jul 2008
I would be more inclined to use hot key macro's. The last line of the macro
would take the user to the next cell in the range. That would be my 2 cents...

--
HTH...

Jim Thomlinson


"Otto Moehrbach" wrote:

> The only way I can think of for what you say to work is to use an InputBox.
> Basically you would have a Worksheet_SelectionChange event macro that would
> do something when you click on a cell in a specific range (chosen by you).
> What it would do is present an InputBox and ask you to enter something
> (what??). If you enter a "b" the macro would bold the cell, an "i" and it
> would italicize the cell, and so forth. Would this work for you? HTH Otto
> "Oshtruck user" <(E-Mail Removed)> wrote in message
> news:6E5EFCE6-6C20-499C-84C7-(E-Mail Removed)...
> >I am looking for a macro that will run through a selected range of cells
> >that
> > will stop at each cell and wait for a keyboard button to be pressed, and
> > depending on the button pressed will do different types of formatting.
> > Can
> > anyone help. I don't want this to work with a Dialog box or anything, I
> > want
> > it to work with keyboard buttons. For example the first cell in the range
> > it
> > waits for me to press a button. I press the b button and it bolds it.
> > The
> > second cell in the range it waits for me to press a button. I press the i
> > button and it puts the cell in italics. And so on..

>
>
>

 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      21st Jul 2008
Jim
Could you direct me to where I can get more information about hot key
macros? Thanks. Otto
"Jim Thomlinson" <James_Thomlinson@owfg-Re-Move-This-.com> wrote in message
news:A981843F-D66B-4B95-BF0E-(E-Mail Removed)...
>I would be more inclined to use hot key macro's. The last line of the macro
> would take the user to the next cell in the range. That would be my 2
> cents...
>
> --
> HTH...
>
> Jim Thomlinson
>
>
> "Otto Moehrbach" wrote:
>
>> The only way I can think of for what you say to work is to use an
>> InputBox.
>> Basically you would have a Worksheet_SelectionChange event macro that
>> would
>> do something when you click on a cell in a specific range (chosen by
>> you).
>> What it would do is present an InputBox and ask you to enter something
>> (what??). If you enter a "b" the macro would bold the cell, an "i" and
>> it
>> would italicize the cell, and so forth. Would this work for you? HTH
>> Otto
>> "Oshtruck user" <(E-Mail Removed)> wrote in message
>> news:6E5EFCE6-6C20-499C-84C7-(E-Mail Removed)...
>> >I am looking for a macro that will run through a selected range of cells
>> >that
>> > will stop at each cell and wait for a keyboard button to be pressed,
>> > and
>> > depending on the button pressed will do different types of formatting.
>> > Can
>> > anyone help. I don't want this to work with a Dialog box or anything,
>> > I
>> > want
>> > it to work with keyboard buttons. For example the first cell in the
>> > range
>> > it
>> > waits for me to press a button. I press the b button and it bolds it.
>> > The
>> > second cell in the range it waits for me to press a button. I press
>> > the i
>> > button and it puts the cell in italics. And so on..

>>
>>
>>



 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      22nd Jul 2008
Jim
I realize now what you meant. Yes, that is a good idea for the OP.
Otto
"Otto Moehrbach" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Jim
> Could you direct me to where I can get more information about hot key
> macros? Thanks. Otto
> "Jim Thomlinson" <James_Thomlinson@owfg-Re-Move-This-.com> wrote in
> message news:A981843F-D66B-4B95-BF0E-(E-Mail Removed)...
>>I would be more inclined to use hot key macro's. The last line of the
>>macro
>> would take the user to the next cell in the range. That would be my 2
>> cents...
>>
>> --
>> HTH...
>>
>> Jim Thomlinson
>>
>>
>> "Otto Moehrbach" wrote:
>>
>>> The only way I can think of for what you say to work is to use an
>>> InputBox.
>>> Basically you would have a Worksheet_SelectionChange event macro that
>>> would
>>> do something when you click on a cell in a specific range (chosen by
>>> you).
>>> What it would do is present an InputBox and ask you to enter something
>>> (what??). If you enter a "b" the macro would bold the cell, an "i" and
>>> it
>>> would italicize the cell, and so forth. Would this work for you? HTH
>>> Otto
>>> "Oshtruck user" <(E-Mail Removed)> wrote in
>>> message
>>> news:6E5EFCE6-6C20-499C-84C7-(E-Mail Removed)...
>>> >I am looking for a macro that will run through a selected range of
>>> >cells
>>> >that
>>> > will stop at each cell and wait for a keyboard button to be pressed,
>>> > and
>>> > depending on the button pressed will do different types of formatting.
>>> > Can
>>> > anyone help. I don't want this to work with a Dialog box or anything,
>>> > I
>>> > want
>>> > it to work with keyboard buttons. For example the first cell in the
>>> > range
>>> > it
>>> > waits for me to press a button. I press the b button and it bolds it.
>>> > The
>>> > second cell in the range it waits for me to press a button. I press
>>> > the i
>>> > button and it puts the cell in italics. And so on..
>>>
>>>
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro recorded... tabs & file names changed, macro hangs Steve Microsoft Excel Worksheet Functions 3 30th Oct 2009 11:41 AM
::: Sort macro with empty lines at the end. ::: Macro de tri avec lignes vide en bas. infojacques@gmail.com Microsoft Excel Discussion 2 5th Jul 2007 11:40 AM
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor karll@swfab.com Microsoft Excel Programming 2 30th Mar 2007 07:48 PM
Run Macro On Open event for report and SetValue Macro has wierd error ThompsonJessical@yahoo.com Microsoft Access Macros 2 2nd Aug 2005 05:51 PM
Start Macro / Stop Macro / Restart Macro Pete Microsoft Excel Programming 2 21st Nov 2003 05:04 PM


Features
 

Advertising
 

Newsgroups
 


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