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

Hiya Board,

I have a workbook that contains 10 worksheets,
Page one is for data input,

This is what I am trying to acheive.......
Copy data in row 3 and automatically move it to another worksheet...
dependant on what I enter in cell A1.
(Lets say the names of the other worksheets are Red White Blue...etc)

So if I enter "Red" in A1..
The data is sent to the chosen worksheet.
(data sent must append to the existing data)

I know this is asking a lot, but any help or pointers in the right
direction would be greatly appreciated,

(I have learned how to copy data from one sheet to another (appended)
but i cannot figure this one out.

Kind Regards

Stephen.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Send data to another worksheet....

Since you already know how to copy to the other ws, this should help.
Sub otherws()
x = Sheets("othersheet").Cells(65536, "A").End(xlUp).Row + 1
MsgBox x
End Sub


"Ste_uk" wrote in message
...
Hiya Board,

I have a workbook that contains 10 worksheets,
Page one is for data input,

This is what I am trying to acheive.......
Copy data in row 3 and automatically move it to another worksheet...
dependant on what I enter in cell A1.
(Lets say the names of the other worksheets are Red White Blue...etc)

So if I enter "Red" in A1..
The data is sent to the chosen worksheet.
(data sent must append to the existing data)

I know this is asking a lot, but any help or pointers in the right
direction would be greatly appreciated,

(I have learned how to copy data from one sheet to another (appended)
but i cannot figure this one out.

Kind Regards

Stephen.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Send data to another worksheet....

Wow - Thanks for the speedy response!

I give them a go,


Kind Regards
Stephen
:D
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Send data to another worksheet....

Typo

Set sourceRange = Sheets("Input ").Rows("3:3")


must be

Set sourceRange = Sheets("Input").Rows("3:3")



--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Ron de Bruin" wrote in message ...
One way to copy only the values
With the Input sheet named "Input"
Copy all code in a normal module.
There is no error check if the sheet exist in this example

Sub copy()
Dim sourceRange As Range
Dim destrange As Range
Dim Lr As Long
Dim Firstcell As String
Firstcell = Sheets("Input").Cells(1, 1).Value
Lr = LastRow(Sheets(Firstcell)) + 1
Set sourceRange = Sheets("Input ").Rows("3:3")
Set destrange = Sheets(Firstcell).Rows(Lr). _
Resize(sourceRange.Rows.Count)
destrange.Value = sourceRange.Value
End Sub


Function LastRow(sh As Worksheet)
On Error Resume Next
LastRow = sh.Cells.Find(What:="*", _
After:=sh.Range("A1"), _
Lookat:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
On Error GoTo 0
End Function


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Ste_uk" wrote in message ...
Hiya Board,

I have a workbook that contains 10 worksheets,
Page one is for data input,

This is what I am trying to acheive.......
Copy data in row 3 and automatically move it to another worksheet...
dependant on what I enter in cell A1.
(Lets say the names of the other worksheets are Red White Blue...etc)

So if I enter "Red" in A1..
The data is sent to the chosen worksheet.
(data sent must append to the existing data)

I know this is asking a lot, but any help or pointers in the right
direction would be greatly appreciated,

(I have learned how to copy data from one sheet to another (appended)
but i cannot figure this one out.

Kind Regards

Stephen.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Send data to another worksheet....

Hi Ron

Finally got around to trying the code....
It does exactly as I requested (thank you)

However it has created other unforseen issues that I now need to
tackle,

I will give them a go but dont be suprised if you see another post in a
weeks time!

Once again,
Many thanks for your help

Kind regards

Stephen.
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
send excel worksheet using email Steve Bennett Excel Discussion (Misc queries) 0 October 5th 07 03:44 PM
Send worksheet by E-Mail AOU Excel Discussion (Misc queries) 2 April 13th 07 10:18 AM
how can I send a cell value to another worksheet? Deb Excel Worksheet Functions 1 August 26th 06 10:17 PM
I only want to send one worksheet from excel not the all the work. Happi Excel Discussion (Misc queries) 1 April 4th 05 03:15 PM
Is it possible to send a worksheet without the unhidden data? Mnree7 Excel Worksheet Functions 2 November 3rd 04 05:35 PM


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