Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent - Macro Programming Help Need

I am basically new to programming

Therefore, could any one help me to setup a macro to copy daily Cell
Range K10 to K139 from one Daily Cost file to master Cost file's next
available empty Cell. Example today I copy K10:K139 from Daily cost
file to master cost file C10:C139 and tomorrow it needs to copy to
D10:D139 so on automatically

How do I can write a macro to do the above task.

I will highly appreciate your assistance on this matter.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Urgent - Macro Programming Help Need

Hi Akram

Look at the example on this page
http://www.rondebruin.nl/copy1.htm

http://www.rondebruin.nl/copy1.htm#workbook
This one copy the data below the data each time

If this is what you want I will make a example for you
for to copy it to the right of your data.


Post back then




--
Regards Ron de Bruin
http://www.rondebruin.nl



"Akram_MIM" wrote in message om...
I am basically new to programming

Therefore, could any one help me to setup a macro to copy daily Cell
Range K10 to K139 from one Daily Cost file to master Cost file's next
available empty Cell. Example today I copy K10:K139 from Daily cost
file to master cost file C10:C139 and tomorrow it needs to copy to
D10:D139 so on automatically

How do I can write a macro to do the above task.

I will highly appreciate your assistance on this matter.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Urgent - Macro Programming Help Need

I am assuming you mean worksheets here.

Set wsDaily = Worklsheets("Daily Cost File")
Set wsMaster = Worksheets("Master Cost File")

With wsMaster
cLastCol = .Cells(10,.Columns.Count).End(xlToLeft).Column
If cLastCol = 1 Then
cLastCol = 3 ' first run goes to C
Else
cLastCol = cLastCol + 1 ' next column
End If
wsDaily.Range("K10:K139").Copy Destination:= _
wsMaster.Cells(10,cLastCol)
End With

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Akram_MIM" wrote in message
om...
I am basically new to programming

Therefore, could any one help me to setup a macro to copy daily Cell
Range K10 to K139 from one Daily Cost file to master Cost file's next
available empty Cell. Example today I copy K10:K139 from Daily cost
file to master cost file C10:C139 and tomorrow it needs to copy to
D10:D139 so on automatically

How do I can write a macro to do the above task.

I will highly appreciate your assistance on this matter.



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 programming Kristin Excel Programming 1 September 27th 04 06:27 PM
urgent, on excel programming shirley Excel Programming 6 February 9th 04 10:19 AM
Macro help urgent urgent Dave Peterson[_3_] Excel Programming 0 September 4th 03 03:59 PM
Macro help urgent urgent chandra Excel Programming 0 September 4th 03 03:50 PM
Macro Programming Jamie[_3_] Excel Programming 1 August 27th 03 08:20 PM


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