msgbox

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Msgbox

Msgbox

resolvedResolved · Low Priority · Version 2003

Alison has attended:
Excel VBA Intro Intermediate course

Msgbox

what is the syntax for creating a message box in VBA?

RE: msgbox

Hi Alison

The VBA syntax for creating a message box is

Msgbox(Prompt, [Buttons As vbMsgBoxStyle], [Title], [Help File], [Context])

Only the prompt is compulsory. When only the prompt is used the system creates a message box with an OK button.

Hope this helps

Carlos


 

Excel tip:

Reconciling a list to correspond with another

May have a list that needs to make but on another sheet one list seems to be out, eg. product list one sheet contains all product and inventory data, while the other contains pricing data. Both need to match with all products but there is more products in one list than the other. To find the disparaging product compare data in the two columns that need to match Make sure that order the same way.
Create another column in the sheet that has the most items and type in the first cell


=Exact(text1,text2) text1 being the cell that you want compared with text2 cell reference. Drag to filldown and your first false will give you for first cells that does not match. Correct insert the row with data in other sheet and continue the process until all the data returns true. Delete the column inserted.

View all Excel hints and tips


Server loaded in 0.09 secs.