Dynamic dialogBox update

blaksnm

Well-known Member
Joined
Dec 15, 2009
Messages
554
Office Version
  1. 365
Platform
  1. Windows
Hi
I have some instructions as text in Range("Instructions1") and Range("Instructions2")
I want this to appear as one interactive messagebox when starting the excel-file (auto_open) so I can give new input in the msgbox who updates the ranges when macro proceeds (by "ok" or something like that)
How do I do this?
Will anyone guide me on this?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
And that's why you are getting error. Do you need concatenated string in message box?
 
Upvote 0
:) I am approaching something here
I could ask for more help though:

Here is my modyfied macro (ignore the Norwegian language - its not relevant):

Sub Test()
Dim response1
response = MsgBox("" & Sheets("test").Range("a1"), vbYesNo + vbQuestion, "Endre faste oppgaver?")

If response1 = vbYes Then
newmsg = InputBox("Enter new message for instruction 1")
Sheets("test").Range("a1") = newmsg
End If

Dim response2
response = MsgBox("" & Sheets("test").Range("a2"), vbYesNo + vbQuestion, "Endre variable oppgaver")
If response1 = vbYes Then
newmsg = InputBox("Enter new message for instruction 1")
Sheets("test").Range("a2") = newmsg
End If
End Sub

Question1: I want to edit in msgbox emidiatly - with lines as in dump1
Question2: If not possible I dont' want to delete the existing data - just edit them (dump2)

Mark1: This popup msg will be a reminder when opening the file
Mark2: What is the best way to make it easy to write an new line?
 

Attachments

  • Dump 1.PNG
    Dump 1.PNG
    15.6 KB · Views: 5
  • Dump 2.PNG
    Dump 2.PNG
    14.1 KB · Views: 4
Upvote 0
you might be able to join the lines together using range("C55") & chr(13) & range("C56") & ... etc
chr(13) represents the line return so you will get your 4 line of instructions in the message box
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,377
Members
448,888
Latest member
Arle8907

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