Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 113
Default Code for Tom and Frank

Hi again:

Frank, yours is working now, but my mistake, I would need
inserted not the whole row; just for the 3 columns: sort
of shift cells down; there are other columns after c and I
have autofilter; something like belowlike below...
1 1 OK a
2 2 OK a
b
3 4 NO c
57 7 NO a


Thank you very much,

Dan

PS Tom your did not have a result...

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code for Tom and Frank

PS: Dan, it worked fine for me and the technique is identical to Frank's,
so Don't think the problem is my code - at least not with the information
you presented.

Please try to stay in the thread and not start new threads without context.

--
Regards,
Tom Ogilvy



"Dan" wrote in message
...
Hi again:

Frank, yours is working now, but my mistake, I would need
inserted not the whole row; just for the 3 columns: sort
of shift cells down; there are other columns after c and I
have autofilter; something like belowlike below...
1 1 OK a
2 2 OK a
b
3 4 NO c
57 7 NO a


Thank you very much,

Dan

PS Tom your did not have a result...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Code for Tom and Frank

Hi
see Tom's response. Not sure what your issue is. Also I totally agree
with tom: Please stay in thhe original thread. Don't worry, we'll read
your response

--
Regards
Frank Kabel
Frankfurt, Germany

"Dan" schrieb im Newsbeitrag
...
Hi again:

Frank, yours is working now, but my mistake, I would need
inserted not the whole row; just for the 3 columns: sort
of shift cells down; there are other columns after c and I
have autofilter; something like belowlike below...
1 1 OK a
2 2 OK a
b
3 4 NO c
57 7 NO a


Thank you very much,

Dan

PS Tom your did not have a result...


  #4   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 113
Default Code for Tom and Frank

Hi guys:

I understand!

My issue is that I do not want to inser a entire row just
shift the cells down up to column c(including):

1 1 OK a
2 2 OK b
c
3 4 NO d

Thanks,

Dan

-----Original Message-----
Hi
see Tom's response. Not sure what your issue is. Also I

totally agree
with tom: Please stay in thhe original thread. Don't

worry, we'll read
your response

--
Regards
Frank Kabel
Frankfurt, Germany

"Dan" schrieb im

Newsbeitrag
...
Hi again:

Frank, yours is working now, but my mistake, I would

need
inserted not the whole row; just for the 3 columns: sort
of shift cells down; there are other columns after c

and I
have autofilter; something like belowlike below...
1 1 OK a
2 2 OK a
b
3 4 NO c
57 7 NO a


Thank you very much,

Dan

PS Tom your did not have a result...


.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Code for Tom and Frank

Hi
try:
Sub insert_rows()
Dim lastrow As Long
Dim row_index As Long

lastrow = ActiveSheet.Cells(Rows.count, "C").End(xlUp).row
For row_index = lastrow - 1 To 1 Step -1
If Cells(row_index+1, "C").Value ="No" Then
Cells(row_index + 1, "A").resize(1,3).Insert (xlShiftDown)
End If
Next
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

"Dan" schrieb im Newsbeitrag
...
Hi guys:

I understand!

My issue is that I do not want to inser a entire row just
shift the cells down up to column c(including):

1 1 OK a
2 2 OK b
c
3 4 NO d

Thanks,

Dan

-----Original Message-----
Hi
see Tom's response. Not sure what your issue is. Also I

totally agree
with tom: Please stay in thhe original thread. Don't

worry, we'll read
your response

--
Regards
Frank Kabel
Frankfurt, Germany

"Dan" schrieb im

Newsbeitrag
...
Hi again:

Frank, yours is working now, but my mistake, I would

need
inserted not the whole row; just for the 3 columns: sort
of shift cells down; there are other columns after c

and I
have autofilter; something like belowlike below...
1 1 OK a
2 2 OK a
b
3 4 NO c
57 7 NO a


Thank you very much,

Dan

PS Tom your did not have a result...


.




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
Frank Kobel Adam Excel Discussion (Misc queries) 3 December 29th 04 02:55 PM
Code and thanks for/to Tom and Frank Dan Excel Programming 4 August 13th 04 08:09 PM
Thank you so much, Frank Kabel and ~X! Kim-Anh Tran[_27_] Excel Programming 1 May 18th 04 11:17 PM
Frank Kabel nrage21[_49_] Excel Programming 6 April 22nd 04 02:36 PM
Frank - Thanks Tim Excel Programming 0 February 12th 04 06:52 PM


All times are GMT +1. The time now is 04:19 AM.

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"