I don't even know if there is a name for my question...

Rekx

New Member
Joined
Feb 19, 2004
Messages
12
Sorry y'all...thanks for the help in the past. You all are so friendly here. :pray:
What I'm trying to do is get a command button and input box to send the info/script to a cell on one page and a cell on another. Except on the first page it will overwrite the info in the cells each time something is entered, and on the second page it needs to go down the column so that the previous entry stays there.
I've got it all figured out for the first page, and I figured out how to send the info to the second page, but not so that it doesn't overwrite the previous entry. :oops:
Here is my VBA coded, but this is without any codes to send the info to the other page:


Private Sub ACG_Shipments_Click()
Range("c2").FormulaR1C1 = "=NOW()"
YorN = vbNo
Frm_YesNo.Show

If YorN = vbYes Then
ActiveSheet.ACG_Ship_1.Value = True

Range("E2").Value = ("Current")
Range("F2").Value = ("Current")
MsgBox "This client is current."
YorN = vbNo
UserForm2.Show
If YorN = vbYes Then
Range("H2").Value = InputBox("Please enter your comments.")
Else
Range("h2").Value = ("None")
End If
Exit Sub

Else

ActiveSheet.ACG_Ship_2.Value = True
Range("E2").Value = InputBox("What document is missing?")
Range("f2").Value = InputBox("What is your action?")
YorN = vbNo
UserForm2.Show
If YorN = vbYes Then
Range("H2").Value = InputBox("Please enter your comments.")
Else
Range("h2").Value = ("None")
End If
Exit Sub
End If
End Sub
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,886
Office Version
  1. 365
Platform
  1. Windows
If you use the code:
Range("A65536").End(xlUp).Select
it will find the last cell in column A with data, so if you wanted to write code that would put data in the cell just below the last used cell in a column, use:
Range("A65536").End(xlUp).Offset(1,0).Select

Using this will insure that you don't overwrite the previous data.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,159
Messages
5,768,525
Members
425,480
Latest member
br400821

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top