Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default coloring cells

Hi

I am trying to fill up values in a worksheet with hundreds of columns and
rows.
For every new session of data entry a macro is automatically run protecting
the worksheet leaving only one column unprotected, the one in which data will
be entered. Column B holds the description of all items. Is it possible to
highlight the corresponding cell in column B while the target cell changes
position in the unprotected column?
This will help to make data entry much easier and avoid mistakes in entering
values to the wrong row.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default coloring cells

Nick,

Try this

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Me.Unprotect
Columns("B:B").Interior.ColorIndex = xlColorIndexNone
Cells(Target.Row, "B").Interior.ColorIndex = 35
Me.Protect

End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"NiCK" wrote in message
...
Hi

I am trying to fill up values in a worksheet with hundreds of columns and
rows.
For every new session of data entry a macro is automatically run

protecting
the worksheet leaving only one column unprotected, the one in which data

will
be entered. Column B holds the description of all items. Is it possible to
highlight the corresponding cell in column B while the target cell changes
position in the unprotected column?
This will help to make data entry much easier and avoid mistakes in

entering
values to the wrong row.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default coloring cells

Why not use freeze panes under the window menu item and slide the data entry
column next to column B.

--
Regards,
Tom Ogilvy

"NiCK" wrote in message
...
Hi

I am trying to fill up values in a worksheet with hundreds of columns and
rows.
For every new session of data entry a macro is automatically run

protecting
the worksheet leaving only one column unprotected, the one in which data

will
be entered. Column B holds the description of all items. Is it possible to
highlight the corresponding cell in column B while the target cell changes
position in the unprotected column?
This will help to make data entry much easier and avoid mistakes in

entering
values to the wrong row.

Thanks




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
coloring cells 6371 New Users to Excel 2 April 22nd 09 04:26 AM
coloring cells egarcia Excel Discussion (Misc queries) 0 November 29th 06 05:49 PM
COLORING IN CELLS jim mcgrath Excel Discussion (Misc queries) 4 November 24th 05 04:31 PM
Coloring certain cells Tim Excel Worksheet Functions 2 September 5th 05 04:01 AM
Coloring cells thru VBA Lawrence Mak Excel Programming 5 February 16th 04 02:45 PM


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