#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Target

Is there a macro that will scan every even cell in column F for contents and
when it finds contents it will do this (ActiveCell.FormulaR1C1 = "Target") in
the even cell next to it in Column G?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Target

See answer in your FIRST post

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Workbook" wrote in message
...
Is there a macro that will scan every even cell in column F for contents
and
when it finds contents it will do this (ActiveCell.FormulaR1C1 = "Target")
in
the even cell next to it in Column G?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Target

My apologies. I was having trouble with my connection. Whenever I posted
the message I got an error message that said it had not posted. I am sorry.
I appreciate your help.

"Don Guillett" wrote:

See answer in your FIRST post

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Workbook" wrote in message
...
Is there a macro that will scan every even cell in column F for contents
and
when it finds contents it will do this (ActiveCell.FormulaR1C1 = "Target")
in
the even cell next to it in Column G?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Target

Try this. Be aware that it will do this on the "ActiveSheet".


Sub Test()
Dim aWS As Excel.Worksheet
Dim i As Long
Dim lRow As Long
Dim myCell As Excel.Range

Set aWS = ActiveSheet

lRow = aWS.Cells(aWS.Rows.Count, "F").End(xlUp).Row

For i = 2 To lRow Step 2
Set myCell = aWS.Cells(i, "F")
If Not IsEmpty(myCell) Then
myCell.Offset(0, 1).Value = "Target"
End If

Next i

End Sub


"Workbook" wrote:

Is there a macro that will scan every even cell in column F for contents and
when it finds contents it will do this (ActiveCell.FormulaR1C1 = "Target") in
the even cell next to it in Column G?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Target

I see you've asked this once before. Please only ask the question once.
Otherwise, people waste their time answering a question that's already been
answered.

"Workbook" wrote:

Is there a macro that will scan every even cell in column F for contents and
when it finds contents it will do this (ActiveCell.FormulaR1C1 = "Target") in
the even cell next to it in Column G?



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Target

Yes, I am sorry about that, it was not something that I did intentionally. I
was having problems with my connection. Whenever I posted the question I got
an error message that said it had not posted. My apologies. Thank you for
you're help. The code works.

"Barb Reinhardt" wrote:

I see you've asked this once before. Please only ask the question once.
Otherwise, people waste their time answering a question that's already been
answered.

"Workbook" wrote:

Is there a macro that will scan every even cell in column F for contents and
when it finds contents it will do this (ActiveCell.FormulaR1C1 = "Target") in
the even cell next to it in Column G?

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
Target cell reference moves when target is cut and pasted Illya Teideman Excel Discussion (Misc queries) 5 May 31st 07 11:34 AM
add target nowfal[_48_] Excel Programming 3 August 26th 05 08:33 PM
Target As Excel.Range or Target As Range Piranha[_5_] Excel Programming 2 June 3rd 05 03:49 PM
Ranges:Target in Worksheet_SelectionChange(ByVal Target As Range) Kevin McCartney Excel Programming 3 April 15th 05 01:51 PM
How find if target is object in Worksheet_Change (ByVal Target As.. ?) Gunnar Johansson Excel Programming 3 July 1st 04 09:25 PM


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