#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Mark entire row

Hello,

1) How do I write a macro to mark an entire row based on cursor position?
Something like:

ActiveCell.EntireRow.Font = Bold or
ActiveCell.EntireRow.Font.Bold = True

2) Would it be possible to re-map keyboard functions fr a while (when Excel
file is an "active" window). Since typing text in Excel is not very likely
in my case, I would very much prefer to run a macro like
ActiveCell.EntireRow.Font = Bold
by simply hitting "z", "x" or whatever, rather than look for Ctrl + z etc.

Thanks for any advice.

Yarroll


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Mark entire row

Use this code:

Sub BoldRow()

Rows(ActiveCell.Row).Select
Selection.Font.Bold = True

End Sub


After you put that in VBA, go to your macro list under Data--Macro,
choose BoldRow (or whatever you call it) and you can define a keyboard
shortcut for it. I don't think there's a way to make it work without
using the CTRL key.


Yarroll wrote:
Hello,

1) How do I write a macro to mark an entire row based on cursor position?
Something like:

ActiveCell.EntireRow.Font = Bold or
ActiveCell.EntireRow.Font.Bold = True

2) Would it be possible to re-map keyboard functions fr a while (when Excel
file is an "active" window). Since typing text in Excel is not very likely
in my case, I would very much prefer to run a macro like
ActiveCell.EntireRow.Font = Bold
by simply hitting "z", "x" or whatever, rather than look for Ctrl + z etc.

Thanks for any advice.

Yarroll


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Mark entire row


Thanks!!!

napisal w wiadomosci
oups.com...
Use this code:

Sub BoldRow()

Rows(ActiveCell.Row).Select
Selection.Font.Bold = True

End Sub


After you put that in VBA, go to your macro list under Data--Macro,
choose BoldRow (or whatever you call it) and you can define a keyboard
shortcut for it. I don't think there's a way to make it work without
using the CTRL key.


Yarroll wrote:
Hello,

1) How do I write a macro to mark an entire row based on cursor

position?
Something like:

ActiveCell.EntireRow.Font = Bold or
ActiveCell.EntireRow.Font.Bold = True

2) Would it be possible to re-map keyboard functions fr a while (when

Excel
file is an "active" window). Since typing text in Excel is not very

likely
in my case, I would very much prefer to run a macro like
ActiveCell.EntireRow.Font = Bold
by simply hitting "z", "x" or whatever, rather than look for Ctrl + z

etc.

Thanks for any advice.

Yarroll




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
The mark is bugging me! LOL Wayne Knazek Excel Worksheet Functions 2 July 17th 06 07:05 PM
Copy an entire sheet Gynandra Excel Discussion (Misc queries) 1 June 28th 06 04:31 AM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
In Excel, can I shade entire rows based on the value of a single . Todd Excel Worksheet Functions 1 March 24th 05 05:52 PM
Search should highlight entire row in Excell in red samuel Excel Discussion (Misc queries) 5 December 27th 04 11:49 PM


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