Modeless Msgbox?

  • Thread starter Thread starter PJohnson
  • Start date Start date
P

PJohnson

Is there anyway to display/show a modeless msgbox (vbOKOnly)? I need the
user to be able to do something before continuing. I guess I am trying to
avoid a userform. Any help appreciated.

Pete
 
Depends on what you want to be able to do, but look at Application.Inputbox
in VBA Help.
 
An inputbox is modal also. I just need to user to be able to perhaps select
or copy or paste something (on the excel sheet itself) before continuing
with the code.
 
Dim rng as Range
Dim rng1 as Range
On Error Resume Next
set rng = Application.Inputbox("Select range with mouse", Type:=8)
On Error goto 0
if rng is nothing then exit sub

On Error Resume Next
set rng1 = Application.Inputbox("Select range with mouse", Type:=8)
On Error goto 0

if rng1 is nothing then exit sub
rng.copy Destination:=rng1
 
Re-read my response PJ, and try it.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top