ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   macros entering data (https://www.excelbanter.com/excel-discussion-misc-queries/59270-macros-entering-data.html)

carrie

macros entering data
 
How do I create a macro that goes to one cell
then waits until I enter new data, then goes to another cell
and waits until I enter new data etc?

thanks

Dave O

macros entering data
 
How about something like

sub Enter_Data()
dim NewValue

NewValue = inputbox("Enter the value for cell A1: ")
range("a1").value = NewValue

NewValue = inputbox("Enter the value for cell G2: ")
range("g2").value = NewValue

NewValue = inputbox("Enter the value for cell I8: ")
range("i8").value = NewValue

end sub



All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com