Copying data from one Excel sheet to another. [Solved/Closed]

Posts
2
Registration date
Thursday May 7, 2009
Last seen
May 8, 2009
-
Hello,

Newbie here.

Okay, I have an Excel workbook that houses a form on the first sheet. What I'm trying to do is to automatically copy the data entered into the rows that are housing the inputted data into a separate sheet that will be used as a database. The database will maintain all of the various entries that have been made into the form for the various clients.

I was able to find an answer on Allexperts that basically delineates everything that I'm trying to do.

Here's the link:

XXXXX

I don't know how to create a shadow form, but I'm sure that's nothing a quick google search can't solve. I'd also like to create the SUBMIT button macro mentioned on the page.

The only other thing that I would like to do with my form that is not covered on the Allexperts page is to limit data entry to "specific" cells so that those entering data won't enter it into the wrong cells.

Any guidance or assistance in creating any of these items (shadow form, Submit button macro, dynamic row pointer) would be great.

I'll let you guys know what I can find.

One question, though:

Should the database include separate columns with headings for each of the rows within which data will be entered?

Thanks.
System Configuration: Windows XP
Firefox 3.0.10
See more 

8 replies

Best answer
410
Thank you
It's as simple as this:

On the sheet you want to copy to, go to the cell you want, and type = (DO NOT HIT ENTER).

Then, go to the sheet with the info and click on the cell you want to copy, and hit enter.

And you're done! Hope this helps :)

Say "Thank you" 410

Glad we were able to help! Love us? Write us a review! Rate CCM

CCM 4399 users have said thank you to us this month

Simply helped me in the easiest way

Thank you
Thannnnnnnnnnnnnnnnks
Thank you SO much! It works a treat :-)
thank you so much
Posts
261
Registration date
Saturday April 11, 2009
Last seen
June 21, 2011
344
41
Thank you
To create form go to visual basic editor (ALT + F11) >>Insert>> Userform
find how to fill controls (text boxes, labels, buttons) into a userform by searching in google
When userform is created and make a macro to show that userform
on clicking the submit button on the form,
find the lastrow in the database sheet (use google) , get all the field values to each cell in the last row
eg. sheets("Database").cells(lastrow+1,1).value=userform1.textbox1.text
sheets("Database").cells(lastrow+1,2).value=userform1.textbox2.text
etc
26
Thank you
ok so after many weeks of fiddling about I finally developed a macro that you tag to a click button (from forms) right click and assign macro. Then paste this into the VB field:

Sub Button1_Click()
Worksheets("Analysis").Range("I4").Value = Worksheets("Amortization").Range("D4")
Worksheets("Amort_Data").Range("N2").Value = Worksheets("Amortization").Range("L9")
Worksheets("Analysis").Range("I6").Value = Worksheets("Amortization").Range("D14")
Worksheets("Amort_Data").Range("P2").Value = Worksheets("Amortization").Range("L10")
End Sub


Using the second line as an example, once the button is clicked it will copy data in cell D$ from my "Amortization" sheet to cell I4 on my "Analysis" sheet. ie if you haven't changed sheet names you would be copying from sheet 1 to sheet 2. For each different cell that you wish to copy to another sheet, you must enter a new line. In my program I have created I have 1 click button that copies 18 variables from one sheet to another. these all have to be entered manually. This works perfectly for me as I have a Loan Amortization on sheet 1 and I wish to copy data outputs from sheet 1 to sheet 2. I have 8 different buttons on my first sheet that perform different actions.

If you need more help please reply to my post here!

Hope this helps
Geoffrey
Hi
I also need exactly this kind of program made in excel.
I have my cash cards selling shop that deals with about 100 customers. I want to create a data entry form in one excel sheet and store the data as databse in same or another sheet.
Could u please send me a wizard or a model excel file for this.
I would be greatful to you.
Thank you
Hi Geoffrey;
Would you please tell me is copy and paste possible between 2 different workbooks. I have about 20 workbooks and I want to copy the date from each workbook to the master book as wrbook1,wrbook2.............wrbook20 = master book. in other works between 10-20 rows and about 60 columns from each wrbook1...........wrbook20 should be consolidated into mater work book and master book would have 0-200 rows and 60 columns and contains each wrbook's data individually on one WORKSHEET of master workbook.????????????/

regards
Xaidi
how to do the program? sorry I dont know how to.. pls help me guide to do the step by step program in excel... pls send me email at EMail Id removed for security. thnks. it will be a big help.... :)
Posts
2
Registration date
Tuesday August 11, 2009
Last seen
August 12, 2009
11
Thank you
Dim total as Long

total = thissheet.range("A" & 1).value + thissheet.range("A" & 1).value + thissheet.range("B" & 1).value + _
thissheet.range("C" & 1).value

Now I would like to copy this "total" to thissheet.range("E" & 1) 'total of A B C to E

Any help on this.

Regards,
Herald A.
10
Thank you
Hi Geoffrey,

I'm working on this code, I will share the code ASAP on this blog.

Regards,
Herald A.
Hi There

This is exactly what I am looking for to complete a project...

If poss, could you send template/code to Email Id removed for security also.

Many Thanks

Ross
> ckdiggy -
Hi Ross,

Sorry for the late reply, appologies that I couldnt reply to any of the emails, coz I was posted to another country on work ( 3~4 months) and high priority work.

I read all your emails, I will post the draft copy of this excel this evening and by end of this month I will upload the completed version of this excel.

Also, can anyone help me how to upload the excel on this web site (i mean steps or procedure).

I would like to do this coz I got initial help from this site, sure this will help others too.

Regards,
Herald A.
Email Id removed for security
10
Thank you
Alot of work? You are kidding me right? That's basic VB. Grow up and stop trying to hustle people into paying for your B$ excel work. A lot of work..

i'm still laughing.
Im so glad your laughing... yes the one code was not much work "broham" however the other 11 sheets, 32 pieces of code and well I think its 1600 cells of inputed data I had to manually enter... yeah not much work for someone who never used excel before...

Grow up and learn not to bag someone for things they are TRYING to learn themselves, WITHOUT first knowing what they went to to get there.

Oh and I don't sell things people can get for free buddy. It's a University assignment, and I don't much feel like distributing something freely after ive spent about 3 months of sleepless nights on.

Go play World of warcraft if your such a nerd and can do this in your sleep. keep "loling" mate.

Stay Tough

Geoffrey
> Geoffs87 -
Hi Geoffrey,
I am attempting to create a 'Form' in Excel. I want clients to be able to enter their mortgage data on a single screen. In the background I have created the ammortizaiton schedules for 15,20 & 30 year loans with interest, principal and running balance. I also have a worksheet that contains all of the closing costs associated with refinancing their current loan into a loan product of their choosing.

I don't understand how to use the 'LoanEntryForm' to move the data into the spreadsheet or vice-versa. I hope to move the particulars between the 2 apps and then create ROI charts. So when the consumer enters their data they see graphic representation of how it 'works' in the future.

I am stuck at the point of getting the 'button' in VB to go and grab the data from excel. Or I can't even get the button to send the data into excel so it can do the cruncning...

any advice.

thanks,
K
8
Thank you
Dim total as Long

total = thissheet.range("A" & 1).value + thissheet.range("A" & 1).value + thissheet.range("B" & 1).value + _
thissheet.range("C" & 1).value

Now I would like to copy this "total" to thissheet.range("E" & 1) 'total of A B C to E

Any help on this.

Regards,
Herald A.
Posts
261
Registration date
Saturday April 11, 2009
Last seen
June 21, 2011
344
1
Thank you
change thissheet. to activesheet and try