LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Pulling Data from one spreadsheet to another

Good afternoon, I'm trying to create a macro that at a click of the button will
cause my open spreadsheet to pull data from a closed master spreadsheet.

the length of rows changes daily sometimes 120 others only 50 how do i make
it search until (A) colum shows as blank. Data starts in A2 - CF2 (Row 1 is
headings)

thank you for your help. this is what I've tried with no success.

Sub test()
'
' test Macro
' Macro recorded 5/1/2007 by Allstate
'

'
ChDir _
"D:\documents and settings\ppor2\Desktop\Work
Projects\Pitney\Pitney_Spreadsheet\Original"
Workbooks.Open Filename:= _
"D:\documents and settings\ppor2\Desktop\Work
Projects\Pitney\Pitney_Spreadsheet\Original\Prodda ta_APS1.xls"
Range("A1").Select
Do Until IsEmpty(ActiveCell)
Selection.Copy
Windows("Book1").Activate
Rows("1:1").Select
ActiveSheet.Paste
End Sub
 
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
pulling random data from another tab in spreadsheet? davie670 Excel Discussion (Misc queries) 2 March 9th 10 07:56 PM
Pulling data from one spreadsheet to another. Geof Davies Excel Worksheet Functions 1 November 14th 09 01:46 AM
Exported data pulling into another spreadsheet Bemidji Excel Discussion (Misc queries) 6 August 8th 06 03:58 PM
Please Help! - Need Help pulling data from one spreadsheet to anot dhwinters Excel Worksheet Functions 1 February 1st 06 09:20 PM
Pulling data into textbox from spreadsheet Wiggler Excel Programming 0 March 3rd 05 04:51 PM


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