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

Hi
I need help to create a macro which will look in
column "Z"
and if any cell in this column has value 1 then do this:
1) On the entire row with offset put in column "K"
current date
2) Entire row Copy-Paste Special-Values
3) Entire row change value 1 in column "Z" with the
formula: =IF(sub!C1=6,1,"")
Any help is highly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
tim tim is offline
external usenet poster
 
Posts: 105
Default help with macro

I need your help to create this macro.
Please help me if you can Dave!!!
I know you cando this.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default help with macro

How about we get you started by suggesting you look in VBA HELP index for
FIND or FIND NEXT for part 1 of your question. Part 2 can be resolved by
using the recorder. Some of your question is not very clear.

--
Don Guillett
SalesAid Software

"Tim" wrote in message
...
I need your help to create this macro.
Please help me if you can Dave!!!
I know you cando this.



  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default help with macro


it is not homework.
I ned you to help me if you can Don


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default help with macro

Sub ProcZ()
Dim cell as Range, rng as Range
set rng = Range(cells(1,"Z"),cells(rows.count,"Z").End(xlup) )
for each cell in rng
if cell.Value = 1 then
cells(cell.row,"K").Value = Date
cell.Entirerow.Copy
cells(cell.row,1).EntireRow.Pastespecial xlValues
cell.Formula = "=If(Sub!C1=6,1,"""")"
end if
Next
End Sub

--
Regards,
Tom Ogilvy

"Tim" wrote in message
...
Hi
I need help to create a macro which will look in
column "Z"
and if any cell in this column has value 1 then do this:
1) On the entire row with offset put in column "K"
current date
2) Entire row Copy-Paste Special-Values
3) Entire row change value 1 in column "Z" with the
formula: =IF(sub!C1=6,1,"")
Any help is highly appreciated.



  #7   Report Post  
Posted to microsoft.public.excel.programming
tim tim is offline
external usenet poster
 
Posts: 105
Default my question-MORE CLEAR


Hi
I need a help to create a macro which will look in
column "Z"
and if any cell in this column has value "1" the macro
should do this:
1) On the entire row (which cell in column "Z" is=1)
with offset put in column "K" current date
2) Entire row(which cell in column "Z" is=1) Copy-
Paste Special-Values.
3) On the Entire row (which cell in column "Z"
is=1) change the value 1 in column "Z" with the formula:
=IF(sub!C1=6,1,"") (replace number "1" in column"Z" of
the entire row(which cell in column "Z" is=1) with the
next formula: =IF(sub!C1=6,1,"")
Any help is highly appreciated.

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default my question-MORE CLEAR

I gave you an answer that does that - do you have a problem with it or just
prefer to work with Don?

--
Regards,
Tom Ogilvy

"Tim" wrote in message
...

Hi
I need a help to create a macro which will look in
column "Z"
and if any cell in this column has value "1" the macro
should do this:
1) On the entire row (which cell in column "Z" is=1)
with offset put in column "K" current date
2) Entire row(which cell in column "Z" is=1) Copy-
Paste Special-Values.
3) On the Entire row (which cell in column "Z"
is=1) change the value 1 in column "Z" with the formula:
=IF(sub!C1=6,1,"") (replace number "1" in column"Z" of
the entire row(which cell in column "Z" is=1) with the
next formula: =IF(sub!C1=6,1,"")
Any help is highly appreciated.



  #9   Report Post  
Posted to microsoft.public.excel.programming
tim tim is offline
external usenet poster
 
Posts: 105
Default my question-MORE CLEAR


As always perfect answer from you.
Tahk you Tom!!!
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 06:31 PM.

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"