Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default change a range colour after copy to another worksheet

Hi all, I would like to change the text colour in a range after copy
from red to black. Here is my current macro:

Dim R As Range
On Error Resume Next
Set R = Application.InputBox("Select A Certificate Number:", _
"Transfer Clearance Register Information", Type:=8)
If R Is Nothing Then Exit Sub
On Error GoTo 0
Set R = R.Resize(1, 5)
R.Copy Sheets(2).Cells(65000, 1).End(xlUp).Offset(1, 0)
Sheets("Non-Conformances").Select

Hope you can help
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default change a range colour after copy to another worksheet

Thanks heaps Ardus for your help. Unfortunately I did not explain what
I require very well. Sorry! I would like the text on the second
worksheet to be black after paste while the original text on worksheet
1 remains red. (I hate being a begginer at this stuff but I guess this
is how we learn).
Thanks again

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default change a range colour after copy to another worksheet

Sub test()
Dim R As Range
Dim rDest As Range
On Error Resume Next
Set R = Application.InputBox("Select A Certificate Number:", _
"Transfer Clearance Register Information", Type:=8)
If R Is Nothing Then Exit Sub
On Error GoTo 0
Set R = R.Resize(1, 5)
Set rDest = Sheets(2).Cells(Rows.Count).End(xlUp).Offset(1, 0)
R.Copy rDest
rDest.Font.ColorIndex = xlNone
Sheets("Non-Conformances").Select
End Sub

HTH
--
AP

"Kezza" a écrit dans le message de news:
...
Thanks heaps Ardus for your help. Unfortunately I did not explain what
I require very well. Sorry! I would like the text on the second
worksheet to be black after paste while the original text on worksheet
1 remains red. (I hate being a begginer at this stuff but I guess this
is how we learn).
Thanks again



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
How can I change worksheet background colour Mark Setting up and Configuration of Excel 2 January 5th 21 07:17 AM
Change colour of rows in a worksheet VJ Sharma[_2_] Excel Discussion (Misc queries) 1 May 13th 09 11:14 AM
Change text colour if range of values all zero Robin Excel Worksheet Functions 5 August 3rd 07 02:38 PM
how do i change (or add) colour to the worksheet tabs (in excel) french-girl Excel Worksheet Functions 2 July 3rd 07 06:16 PM
How do i make a range of cells change colour Spiller Excel Worksheet Functions 6 August 24th 05 02:11 PM


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