rharri1972
Board Regular
- Joined
- Nov 12, 2021
- Messages
- 132
- Office Version
- 2019
- Platform
- Windows
Good Saturday morning everyone!!
What I want to do if someone doesn't mind helping me is....
I have a macro that will check to make sure ALL cells in a range are empty on sheet ("paste MRP data here"). I have a user form that is triggered when criteria is met. At this point I am on "Sheet1". When i hit the "OK" button on the userform I want to set the value of A1 on sheet ("paste MRP data here") to "Paste Data Here"
I am trying with :
sub setvalue()
application.screenupdating = false
worksheets("paste MRP data here").select
activesheet.range("A1").value = "Paste Data Here"
worksheets("Sheet1").activate
application.screenupdating = true
end sub
I keep getting a subscript out of range error 9
as you can probably see i am new to this and trying to wrap my head around it as well.
any help is greatly appreciated!!
What I want to do if someone doesn't mind helping me is....
I have a macro that will check to make sure ALL cells in a range are empty on sheet ("paste MRP data here"). I have a user form that is triggered when criteria is met. At this point I am on "Sheet1". When i hit the "OK" button on the userform I want to set the value of A1 on sheet ("paste MRP data here") to "Paste Data Here"
I am trying with :
sub setvalue()
application.screenupdating = false
worksheets("paste MRP data here").select
activesheet.range("A1").value = "Paste Data Here"
worksheets("Sheet1").activate
application.screenupdating = true
end sub
I keep getting a subscript out of range error 9
as you can probably see i am new to this and trying to wrap my head around it as well.
any help is greatly appreciated!!