PC Review


Reply
Thread Tools Rate Thread

"Call" Commandbutton1()

 
 
pgarcia
Guest
Posts: n/a
 
      18th Jan 2008
When I'm trying to do is, bring up a "msgbox" but when you click on "OK" it
closes the Excel without saveing the work sheet. I belive this will be done
as a userform, but not sure on the VB codes.

Thanks
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      18th Jan 2008
Put this in the standard code module and you can either make a keyboard
shortcut or add a button to the tool bar and assign this code to it.

Sub clsSavWB()
Resp = MsgBox("Do you want to close without _
saving?", vbYes/No + vbQuestion, "Close Workbook"
If Resp = vbYes Then
ActiveWorkbook.Close SaveChanges:=False
End If
End Sub

"pgarcia" wrote:

> When I'm trying to do is, bring up a "msgbox" but when you click on "OK" it
> closes the Excel without saveing the work sheet. I belive this will be done
> as a userform, but not sure on the VB codes.
>
> Thanks

 
Reply With Quote
 
pgarcia
Guest
Posts: n/a
 
      18th Jan 2008
Thanks, but I don't want to give my user a yes/no question. Just an OK and
when they click on it, it close the application.

"JLGWhiz" wrote:

> Put this in the standard code module and you can either make a keyboard
> shortcut or add a button to the tool bar and assign this code to it.
>
> Sub clsSavWB()
> Resp = MsgBox("Do you want to close without _
> saving?", vbYes/No + vbQuestion, "Close Workbook"
> If Resp = vbYes Then
> ActiveWorkbook.Close SaveChanges:=False
> End If
> End Sub
>
> "pgarcia" wrote:
>
> > When I'm trying to do is, bring up a "msgbox" but when you click on "OK" it
> > closes the Excel without saveing the work sheet. I belive this will be done
> > as a userform, but not sure on the VB codes.
> >
> > Thanks

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      18th Jan 2008
Change it to OK only.

Sub clsSavWB()
Resp = MsgBox("Click OK to Save", , "Close Workbook"
If Resp = vbOK Then
ActiveWorkbook.Close SaveChanges:=False
End If
End Sub


"pgarcia" wrote:

> Thanks, but I don't want to give my user a yes/no question. Just an OK and
> when they click on it, it close the application.
>
> "JLGWhiz" wrote:
>
> > Put this in the standard code module and you can either make a keyboard
> > shortcut or add a button to the tool bar and assign this code to it.
> >
> > Sub clsSavWB()
> > Resp = MsgBox("Do you want to close without _
> > saving?", vbYes/No + vbQuestion, "Close Workbook"
> > If Resp = vbYes Then
> > ActiveWorkbook.Close SaveChanges:=False
> > End If
> > End Sub
> >
> > "pgarcia" wrote:
> >
> > > When I'm trying to do is, bring up a "msgbox" but when you click on "OK" it
> > > closes the Excel without saveing the work sheet. I belive this will be done
> > > as a userform, but not sure on the VB codes.
> > >
> > > Thanks

 
Reply With Quote
 
pgarcia
Guest
Posts: n/a
 
      18th Jan 2008
Thanks again, but for some reson it did not like that code. I get a "Complie
error."

"JLGWhiz" wrote:

> Change it to OK only.
>
> Sub clsSavWB()
> Resp = MsgBox("Click OK to Save", , "Close Workbook"
> If Resp = vbOK Then
> ActiveWorkbook.Close SaveChanges:=False
> End If
> End Sub
>
>
> "pgarcia" wrote:
>
> > Thanks, but I don't want to give my user a yes/no question. Just an OK and
> > when they click on it, it close the application.
> >
> > "JLGWhiz" wrote:
> >
> > > Put this in the standard code module and you can either make a keyboard
> > > shortcut or add a button to the tool bar and assign this code to it.
> > >
> > > Sub clsSavWB()
> > > Resp = MsgBox("Do you want to close without _
> > > saving?", vbYes/No + vbQuestion, "Close Workbook"
> > > If Resp = vbYes Then
> > > ActiveWorkbook.Close SaveChanges:=False
> > > End If
> > > End Sub
> > >
> > > "pgarcia" wrote:
> > >
> > > > When I'm trying to do is, bring up a "msgbox" but when you click on "OK" it
> > > > closes the Excel without saveing the work sheet. I belive this will be done
> > > > as a userform, but not sure on the VB codes.
> > > >
> > > > Thanks

 
Reply With Quote
 
pgarcia
Guest
Posts: n/a
 
      18th Jan 2008
Ahhhh, what a rucky move. Where was a ) missing. It works great, thanks.

"JLGWhiz" wrote:

> Change it to OK only.
>
> Sub clsSavWB()
> Resp = MsgBox("Click OK to Save", , "Close Workbook"
> If Resp = vbOK Then
> ActiveWorkbook.Close SaveChanges:=False
> End If
> End Sub
>
>
> "pgarcia" wrote:
>
> > Thanks, but I don't want to give my user a yes/no question. Just an OK and
> > when they click on it, it close the application.
> >
> > "JLGWhiz" wrote:
> >
> > > Put this in the standard code module and you can either make a keyboard
> > > shortcut or add a button to the tool bar and assign this code to it.
> > >
> > > Sub clsSavWB()
> > > Resp = MsgBox("Do you want to close without _
> > > saving?", vbYes/No + vbQuestion, "Close Workbook"
> > > If Resp = vbYes Then
> > > ActiveWorkbook.Close SaveChanges:=False
> > > End If
> > > End Sub
> > >
> > > "pgarcia" wrote:
> > >
> > > > When I'm trying to do is, bring up a "msgbox" but when you click on "OK" it
> > > > closes the Excel without saveing the work sheet. I belive this will be done
> > > > as a userform, but not sure on the VB codes.
> > > >
> > > > Thanks

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      19th Jan 2008
shouldn't the message be "Click OK to Close Workbook without saving"

Sub clsSavWB()
Resp = MsgBox("Click OK to Close Without Saving", , "Close Workbook")
If Resp = vbOK Then
ActiveWorkbook.Close SaveChanges:=False
End If
End Sub




"pgarcia" wrote:

> Ahhhh, what a rucky move. Where was a ) missing. It works great, thanks.
>
> "JLGWhiz" wrote:
>
> > Change it to OK only.
> >
> > Sub clsSavWB()
> > Resp = MsgBox("Click OK to Save", , "Close Workbook"
> > If Resp = vbOK Then
> > ActiveWorkbook.Close SaveChanges:=False
> > End If
> > End Sub
> >
> >
> > "pgarcia" wrote:
> >
> > > Thanks, but I don't want to give my user a yes/no question. Just an OK and
> > > when they click on it, it close the application.
> > >
> > > "JLGWhiz" wrote:
> > >
> > > > Put this in the standard code module and you can either make a keyboard
> > > > shortcut or add a button to the tool bar and assign this code to it.
> > > >
> > > > Sub clsSavWB()
> > > > Resp = MsgBox("Do you want to close without _
> > > > saving?", vbYes/No + vbQuestion, "Close Workbook"
> > > > If Resp = vbYes Then
> > > > ActiveWorkbook.Close SaveChanges:=False
> > > > End If
> > > > End Sub
> > > >
> > > > "pgarcia" wrote:
> > > >
> > > > > When I'm trying to do is, bring up a "msgbox" but when you click on "OK" it
> > > > > closes the Excel without saveing the work sheet. I belive this will be done
> > > > > as a userform, but not sure on the VB codes.
> > > > >
> > > > > Thanks

 
Reply With Quote
 
what's in a name, or surname for that matter?
Guest
Posts: n/a
 
      24th Jan 2008
Hi All,

I'd be interested to learn what a VBA professional charges per hour in
the U.S. and U.K. nowadays.

Thanx for your replies.
 
Reply With Quote
 
(PeteCresswell)
Guest
Posts: n/a
 
      25th Jan 2008
Per what's in a name, or surname for that matter?:
>Hi All,
>
>I'd be interested to learn what a VBA professional charges per hour in
>the U.S. and U.K. nowadays.
>
>Thanx for your replies.


I wouldn't think there's any meaningful answer without a specific
location.

Major financial centers:Rural settings..... huge diffs - in both
hourly rates and living expenses.

Even within a given area, there are very large differences
depending on organization and employment method.


Independent contractor dealing direct with the company, working
on a project where he's just a miniscule slice of a humongous pie
is one extreme.

Somebody working through an agency that skims 30-40 percent off
the top and being placed in a business enterprise that isn't
doing that well might be another extreme.

In the two above and an urban setting think $100/hour vs
$32.50/hour.
--
PeteCresswell
 
Reply With Quote
 
what's in a name, or surname for that matter?
Guest
Posts: n/a
 
      25th Jan 2008
On Thu, 24 Jan 2008 19:14:54 -0500, "(PeteCresswell)" <(E-Mail Removed)>
wrote:

>Per what's in a name, or surname for that matter?:
>>Hi All,
>>
>>I'd be interested to learn what a VBA professional charges per hour in
>>the U.S. and U.K. nowadays.
>>
>>Thanx for your replies.

>
>I wouldn't think there's any meaningful answer without a specific
>location.
>
>Major financial centers:Rural settings..... huge diffs - in both
>hourly rates and living expenses.
>
>Even within a given area, there are very large differences
>depending on organization and employment method.
>
>
>Independent contractor dealing direct with the company, working
>on a project where he's just a miniscule slice of a humongous pie
>is one extreme.
>
>Somebody working through an agency that skims 30-40 percent off
>the top and being placed in a business enterprise that isn't
>doing that well might be another extreme.
>
>In the two above and an urban setting think $100/hour vs
>$32.50/hour.


Thanx, and OK, poin taken. Let me rephrase te question: what is the
going hourly rate for the no-contract, freelancing VBA programming in
the U.K. and U.S.?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to properly "call" a macro - getting error 2485 "can't find object" EagleOne@microsoftdiscussiongroups.com Microsoft Access 2 24th May 2008 06:08 PM
"remote procedure call" "slow shutdown" xp home ColinK Windows XP General 0 12th Nov 2007 12:47 AM
change a column name (i.e. "company" to "call back") =?Utf-8?B?ZGViYmpv?= Microsoft Outlook Contacts 2 29th Mar 2006 08:40 PM
BEWARE OF "CALL PLAN" and "CRITICAL PATH" SOFTWARE =?Utf-8?B?YmFsdG9iZXJuaWU=?= Microsoft Outlook BCM 0 31st Jan 2006 09:40 PM
How to make the "new call" window "create a journal entry" check . =?Utf-8?B?SGFs?= Microsoft Outlook Contacts 0 10th Dec 2004 03:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 PM.