Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Transferring data withour overwriting


Hi,

I need to transfer many different cells worth of data from man
different "Spares" workbooks into one "List" workbook.

I need this function to be automatic when the user clicks on
selection of buttons on "List". There will be different button
relating to the the different "Spares" workbooks that the data will b
taken from as not all of the "Spares" workbooks will be required all o
the time.

I also need the function not to overwrite any data already entere
either directly by the user or automatically into "List" from th
"Spares" workbooks.

I understand there is the ISBLANK function but I am usure how to use i
in this case.

Also the formatting of "List" is over three colums:
"Quantity", "Description" and "Part Number"
and does not start on cell A1.

A long question I know, but any ideas?

Thanks
Susi

--
Susie
-----------------------------------------------------------------------
SusieQ's Profile: http://www.excelforum.com/member.php...fo&userid=3081
View this thread: http://www.excelforum.com/showthread.php?threadid=50483

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Transferring data withour overwriting

Hi Susie,

I made something with these asumptions:
- for "List"
= Quantity in Column 'B'
= Description in Column 'C'
= Partnumber in Column 'D'
- for "Spares"
= Quantity on Sheet "Sales" in cell "G20"
= Description same sheet in cell "B1"
= Partnumber same sheet in cell "A1"



Sub InfoFromSpares(strName As String)
Dim strQuantity As String
Dim strDescription As String
Dim strPartNumber As String

ThisWorkbook.Sheets("List").Activate
ActiveSheet.Range("B2").End(xlDown).Offset(1, 0).Select

Application.Workbooks.Add (strName)
strQuantity = ActiveWorkbook.Sheets("Sales").Range("G20").Value
strDescription = ActiveWorkbook.Sheets("Sales").Range("B1").Value
strPartNumber = ActiveWorkbook.Sheets("Sales").Range("A1").Value
ActiveWorkbook.Saved = True
ActiveWorkbook.Close

ThisWorkbook.Activate
ActiveCell.Value = strQuantity
ActiveCell.Offset(0, 1).Value = strDescription
ActiveCell.Offset(0, 2).Value = strPartNumber

End Sub


Hoop This Helps,


Executor

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
How copy none excel data & paste in 2007 without overwriting data Wakefootin Excel Discussion (Misc queries) 2 October 8th 09 12:15 AM
Need to add data to a cell without overwriting what's there bettywonka New Users to Excel 1 January 8th 07 08:56 PM
Overwriting data Cody Excel Discussion (Misc queries) 5 November 27th 05 02:40 AM
Overwriting of linked data kivar Excel Discussion (Misc queries) 0 June 2nd 05 03:04 PM
updating of data without overwriting the previous data updated teyhuiyi Excel Programming 0 April 7th 04 03:40 AM


All times are GMT +1. The time now is 04:11 PM.

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"