Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Transfer Data from Input Form - Offset to different worksheet

Hi,

I have two sheets in my spreadsheet, the first which is 'an input
form' and the second which contains all of the data records.

The first sheet ("Input") contains the following titles:

A5 Case ID
B5 Date
C5 Resolver
D5 Details
E5 Resolution
F5 Notes

I need to transfer this data to sheet "Data". These titles all exist
within the Data Sheet on Row 1.

Therefore need a macro to do the following:
1) Check if A6 exists within sheet "Data", column A - If so, end
procedure with message "Record already exists")
2) If the outcome of 1 is that the record doesn't exist, the code
needs to copy A6:F6 from sheet "Input" to sheet "Data" and offset from
Row1 until the next empty row exists.

Appreciate your help as stuck on this and can find similar requests on
the newsgroups but not close enough to what I need.

Thanks in advance, Al.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Transfer Data from Input Form - Offset to different worksheet

Probably should have sent what I've been able to do so far, so
apologies for not including this on original post:

Sub CopyRow()
Sheets("Input").Range("5:5").Copy _
Sheets("Data").Range("A" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End Sub

On 4 Mar, 18:38, wrote:
Hi,

I have two sheets in my spreadsheet, the first which is 'an input
form' and the second which contains all of the data records.

The first sheet ("Input") contains the following titles:

A5 * * *Case ID
B5 * * *Date
C5 * * *Resolver
D5 * * *Details
E5 * * *Resolution
F5 * * *Notes

I need to transfer this data to sheet "Data". *These titles all exist
within the Data Sheet on Row 1.

Therefore need a macro to do the following:
1) *Check if A6 exists within sheet "Data", column A - If so, end
procedure with message "Record already exists")
2) *If the outcome of 1 is that the record doesn't exist, the code
needs to copy A6:F6 from sheet "Input" to sheet "Data" and offset from
Row1 until the next empty row exists.

Appreciate your help as stuck on this and can find similar requests on
the newsgroups but not close enough to what I need.

Thanks in advance, Al.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Transfer Data from Input Form - Offset to different worksheet

I would use something like this:
Cells(1, 2) = TextBox1.Text

If OptionButton1 Then Cells(1, 2) = "Case ID"

If OptionButton3 = True Then
UserForm2.Show
End If

Does that help?
Ryan---
--
RyGuy


" wrote:

Probably should have sent what I've been able to do so far, so
apologies for not including this on original post:

Sub CopyRow()
Sheets("Input").Range("5:5").Copy _
Sheets("Data").Range("A" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End Sub

On 4 Mar, 18:38, wrote:
Hi,

I have two sheets in my spreadsheet, the first which is 'an input
form' and the second which contains all of the data records.

The first sheet ("Input") contains the following titles:

A5 Case ID
B5 Date
C5 Resolver
D5 Details
E5 Resolution
F5 Notes

I need to transfer this data to sheet "Data". These titles all exist
within the Data Sheet on Row 1.

Therefore need a macro to do the following:
1) Check if A6 exists within sheet "Data", column A - If so, end
procedure with message "Record already exists")
2) If the outcome of 1 is that the record doesn't exist, the code
needs to copy A6:F6 from sheet "Input" to sheet "Data" and offset from
Row1 until the next empty row exists.

Appreciate your help as stuck on this and can find similar requests on
the newsgroups but not close enough to what I need.

Thanks in advance, Al.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Transfer Data from Input Form - Offset to different worksheet

Hi Ryan,

I've had a mess with this (apols for the delay in responding) and this
is good.

Thanks for your help with this, much appreciated. Al.

On 5 Mar, 18:03, ryguy7272
wrote:
I would use something like this:
Cells(1, 2) = TextBox1.Text

If OptionButton1 Then Cells(1, 2) = "Case ID"

If OptionButton3 = True Then
* * * * UserForm2.Show
End If

Does that help?
Ryan---
--
RyGuy



" wrote:
Probably should have sent what I've been able to do so far, so
apologies for not including this on original post:


Sub CopyRow()
Sheets("Input").Range("5:5").Copy _
Sheets("Data").Range("A" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End Sub


On 4 Mar, 18:38, wrote:
Hi,


I have two sheets in my spreadsheet, the first which is 'an input
form' and the second which contains all of the data records.


The first sheet ("Input") contains the following titles:


A5 * * *Case ID
B5 * * *Date
C5 * * *Resolver
D5 * * *Details
E5 * * *Resolution
F5 * * *Notes


I need to transfer this data to sheet "Data". *These titles all exist
within the Data Sheet on Row 1.


Therefore need a macro to do the following:
1) *Check if A6 exists within sheet "Data", column A - If so, end
procedure with message "Record already exists")
2) *If the outcome of 1 is that the record doesn't exist, the code
needs to copy A6:F6 from sheet "Input" to sheet "Data" and offset from
Row1 until the next empty row exists.


Appreciate your help as stuck on this and can find similar requests on
the newsgroups but not close enough to what I need.


Thanks in advance, Al.- Hide quoted text -


- Show quoted text -


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
transfer data from excel form to a spreadsheet Jeff[_11_] Excel Discussion (Misc queries) 0 March 13th 08 05:13 PM
Transfer data to form from Excel range upon loading of form. Rob Crawford Excel Programming 2 October 24th 05 03:59 PM
Form 2 Form data transfer Madduck Excel Programming 4 August 23rd 05 11:20 PM
How do you transfer data from an input form in excel to an excel l mdalzell Excel Discussion (Misc queries) 0 April 18th 05 06:10 PM
Input Form on Worksheet 1, Data on Worksheet 2 Jim in Spokane Excel Programming 1 April 4th 04 03:24 PM


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