Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Create macro to paste rows of text cells to lower end of other row

I have a set of four rows for each day of the week having several fixed text
columns. How do I write a macro to add further weeks to the end of the
previous week?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Create macro to paste rows of text cells to lower end of other row

To find the first empty cell in a column you can use (eg)

***************
dim c as range, s as worksheet
set s=thisworkbook.sheets("Sheet1")
set c = s.cells(s.rows.count,1).end(xlUp).offset(1,0)
***************


c would be the first empty cell in column A

Tim




"RodFerd" wrote in message
...
I have a set of four rows for each day of the week having several fixed
text
columns. How do I write a macro to add further weeks to the end of the
previous week?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Create macro to paste rows of text cells to lower end of other

Tim,

Many thanks for the reply. I tried write in your code a macro, but it did
not work; the cursor did not move. Here is what I wrote:

Sub Addon()
'
'Addon Macro
'Macro recorded 20/01/2006 by Rod
'
'Keyboard Shortcut: Ctrl+t

Dim c As Range, s As Worksheet
Set s = ThisWorkbook.Sheets("Sheet1")
Set c = s.Cells(s.Rows.Count, 1).End(xlUp).Offset(1, 0)

End Sub

Any suggestions?

Cheers,

Rod

"Tim Williams" wrote:

To find the first empty cell in a column you can use (eg)

***************
dim c as range, s as worksheet
set s=thisworkbook.sheets("Sheet1")
set c = s.cells(s.rows.count,1).end(xlUp).offset(1,0)
***************


c would be the first empty cell in column A

Tim




"RodFerd" wrote in message
...
I have a set of four rows for each day of the week having several fixed
text
columns. How do I write a macro to add further weeks to the end of the
previous week?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Create macro to paste rows of text cells to lower end of other

The code I posted was just one part of what you'd need: it's not supposed to
move the cursor.
Your problem isn't described in enough detail to provide much more than
that.
Post more details if you need more help.

Tim

"RodFerd" wrote in message
...
Tim,

Many thanks for the reply. I tried write in your code a macro, but it did
not work; the cursor did not move. Here is what I wrote:

Sub Addon()
'
'Addon Macro
'Macro recorded 20/01/2006 by Rod
'
'Keyboard Shortcut: Ctrl+t

Dim c As Range, s As Worksheet
Set s = ThisWorkbook.Sheets("Sheet1")
Set c = s.Cells(s.Rows.Count, 1).End(xlUp).Offset(1, 0)

End Sub

Any suggestions?

Cheers,

Rod

"Tim Williams" wrote:

To find the first empty cell in a column you can use (eg)

***************
dim c as range, s as worksheet
set s=thisworkbook.sheets("Sheet1")
set c = s.cells(s.rows.count,1).end(xlUp).offset(1,0)
***************


c would be the first empty cell in column A

Tim




"RodFerd" wrote in message
...
I have a set of four rows for each day of the week having several fixed
text
columns. How do I write a macro to add further weeks to the end of the
previous week?






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
copy multiple worksheets of a workbook, and paste onto a Word document ( either create new doc file or paste onto an existing file.) I need this done by VBA, Excel Macro Steven Excel Programming 1 October 17th 05 08:56 AM
How do I create upper/lower case letters in cells? boz130 Excel Discussion (Misc queries) 1 September 14th 05 06:23 PM
Macro cut and paste quits, can't re-create NM Burton Excel Programming 1 November 24th 04 06:04 PM
Macro to delete rows with text cells zsalleh Excel Programming 8 August 27th 04 12:22 AM
Macro to Create text file from range of cells? Joan Roco[_2_] Excel Programming 1 July 28th 04 07:28 PM


All times are GMT +1. The time now is 08:14 AM.

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"