LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Change the formatting of row by select a single cell & Editing should be working

Hi All;

I require such a sheet code which can help me in Changing the
formatting of row (like A1:A25) of selected cell (A4 is Selected) and
allow me to use editing (Cut, Copy, Paste, Undo etc).


Currently I'm Using following code but this does not allow me to use
editing (Cut, Copy, Paste, Undo etc) and I can not decide the range for

working this sheet code.


Any kind help is appreciated.


Private Sub Search_Click()
Sheets("Quick Search").Visible = True
ActiveWindow.SelectedSheets.Visible = False
Sheets("Quick Search").Select
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim MyRng As Range
Set MyRng = Target.EntireRow
Application.EnableEvents = False
On Error GoTo end1
Application.Cells.FormatConditions.Delete
With MyRng
.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=ROW()=ROW(INDIRECT(CELL(""address"")))"
With .FormatConditions(1).Font
.Bold = True
.Italic = True
.ColorIndex = 1
End With
.FormatConditions(1).Interior.ColorIndex = 43
End With
end1:
Application.EnableEvents = True
End Sub


Thanks

Vikky

 
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
when I sort it tells me to select a single cell, even though I did boombox Excel Discussion (Misc queries) 2 September 17th 09 10:56 PM
I click on a single cell, and multiple cells select. Why? opt27 Excel Discussion (Misc queries) 1 January 7th 09 07:02 AM
Using mouse to select a single cell within the worksheet Mike B. Excel Discussion (Misc queries) 1 July 30th 07 01:52 AM
I cannot select a single cell or pull down cell contents Carolyn Fahm Excel Worksheet Functions 0 January 24th 06 04:54 PM
Use a RefEdit to select a single cell JON JON Excel Programming 3 July 31st 04 12:41 PM


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