#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Macro Help

' Macro1 Macro
This macro works except I need to be able to find a blank cell in column C.
The first time I run the Macro it works. The second time it copies over the
first entry not the cell below it. I am not sure how to change "Range(c9).
select"
Please see macro below

Thanks for the help

' Macro recorded 9/25/2006 by
'
' Keyboard Shortcut: Ctrl+a
'
Range("C1:G1").Select
Selection.Copy
'
Range("A1").Select
Selection.End(xlDown).Select
Range("C65536").Select
Selection.End(xlUp).Select
Range("C9").Select
ActiveSheet.Paste
End Sub

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200609/1

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,089
Default Macro Help

Try:

Sub test()
Range("C1:G1").Copy Range("C65536").End(xlUp).Offset(1, 0)
End Sub

You should be able to run that as often as you want provided there is
something in cell C1

Regards

Trevor


"Larry Fish via OfficeKB.com" <u27092@uwe wrote in message
news:66d5f866df134@uwe...
' Macro1 Macro
This macro works except I need to be able to find a blank cell in column
C.
The first time I run the Macro it works. The second time it copies over
the
first entry not the cell below it. I am not sure how to change
"Range(c9).
select"
Please see macro below

Thanks for the help

' Macro recorded 9/25/2006 by
'
' Keyboard Shortcut: Ctrl+a
'
Range("C1:G1").Select
Selection.Copy
'
Range("A1").Select
Selection.End(xlDown).Select
Range("C65536").Select
Selection.End(xlUp).Select
Range("C9").Select
ActiveSheet.Paste
End Sub

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200609/1





  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Macro Help

Don, I gget a syntex Error in the row that starts with Cells.

Thanks
Larry

Trevor Shuttleworth wrote:
Try:

Sub test()
Range("C1:G1").Copy Range("C65536").End(xlUp).Offset(1, 0)
End Sub

You should be able to run that as often as you want provided there is
something in cell C1

Regards

Trevor

' Macro1 Macro
This macro works except I need to be able to find a blank cell in column

[quoted text clipped - 22 lines]
ActiveSheet.Paste
End Sub


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200609/1

  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default Macro Help

Trevor, I ran it and it works great!!
Thanks so much for your time and help

Larry Fish wrote:
Don, I get a syntax Error in the row that starts with Cells.

Thanks so much for your time and help
Larry

Try:

[quoted text clipped - 14 lines]
ActiveSheet.Paste
End Sub


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200609/1

  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,089
Default Macro Help

You're welcome ... Thanks for the feedback


"Larry Fish via OfficeKB.com" <u27092@uwe wrote in message
news:66d7042644724@uwe...
Trevor, I ran it and it works great!!
Thanks so much for your time and help

Larry Fish wrote:
Don, I get a syntax Error in the row that starts with Cells.

Thanks so much for your time and help
Larry

Try:

[quoted text clipped - 14 lines]
ActiveSheet.Paste
End Sub


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200609/1



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
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Highlight Range - wrong macro, please edit. Danny Excel Worksheet Functions 8 October 19th 05 11:11 PM


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