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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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
Back
Top