Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

warning messge

Status
Not open for further replies.

braven

Programmer
May 20, 2009
58
0
0
CA
is it possible before run macro can i give any warning massge like make sure is it in c:\test.xls
if so, plese how to do it,
Set wbExcel = appExcel.Workbooks.Open("c:\test.xls
 
could you help,
open excel book save as differnet name and run the macro
this line has cannot access error
wbExcel.SaveAs file_name
the macro : file_name = "c:\test.xls"
Set appexcel = CreateObject("excel.application")
' Set wbExcel = appExcel.Workbooks.Open ("file_name")
' 'appExcel.Visible = True

Set wbExcel = appExcel.Workbooks.Add

wbExcel.SaveAs file_name


 
Like a message box warning?

Use the code below.

Code:
MsgBox ("Make sure macro is in c:\test.xls")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top