Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default about save or save as


what can i do if someone save or save as the workbook, the saved file
only got numbers instead fomula, what i mean is when you save the file,
you can see all the numbers and you cant put in new data.

thanx


--
jinvictor
------------------------------------------------------------------------
jinvictor's Profile: http://www.excelforum.com/member.php...o&userid=34099
View this thread: http://www.excelforum.com/showthread...hreadid=553118

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default about save or save as

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
With Worksheets("Sheet1")
.UsedRange.Value = .UsedRange.Value
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor" wrote in
message ...

what can i do if someone save or save as the workbook, the saved file
only got numbers instead fomula, what i mean is when you save the file,
you can see all the numbers and you cant put in new data.

thanx


--
jinvictor
------------------------------------------------------------------------
jinvictor's Profile:

http://www.excelforum.com/member.php...o&userid=34099
View this thread: http://www.excelforum.com/showthread...hreadid=553118



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default about save or save as


because the workbook is protected, so the code doesnt run properly, what
can i do?
thanx
Bob Phillips Wrote:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
With Worksheets("Sheet1")
.UsedRange.Value = .UsedRange.Value
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor"
wrote in
message ...

what can i do if someone save or save as the workbook, the saved

file
only got numbers instead fomula, what i mean is when you save the

file,
you can see all the numbers and you cant put in new data.

thanx


--
jinvictor

------------------------------------------------------------------------
jinvictor's Profile:

http://www.excelforum.com/member.php...o&userid=34099
View this thread:

http://www.excelforum.com/showthread...hreadid=553118



--
jinvictor
------------------------------------------------------------------------
jinvictor's Profile: http://www.excelforum.com/member.php...o&userid=34099
View this thread: http://www.excelforum.com/showthread...hreadid=553118

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default about save or save as

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
With Worksheets("Sheet1")
.Unprotect
.UsedRange.Value = .UsedRange.Value
.Protect
End With
End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor" wrote
in message ...

because the workbook is protected, so the code doesnt run properly, what
can i do?
thanx
Bob Phillips Wrote:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
With Worksheets("Sheet1")
.UsedRange.Value = .UsedRange.Value
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor"
wrote in
message ...

what can i do if someone save or save as the workbook, the saved

file
only got numbers instead fomula, what i mean is when you save the

file,
you can see all the numbers and you cant put in new data.

thanx


--
jinvictor

------------------------------------------------------------------------
jinvictor's Profile:

http://www.excelforum.com/member.php...o&userid=34099
View this thread:

http://www.excelforum.com/showthread...hreadid=553118



--
jinvictor
------------------------------------------------------------------------
jinvictor's Profile:

http://www.excelforum.com/member.php...o&userid=34099
View this thread: http://www.excelforum.com/showthread...hreadid=553118



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default about save or save as


WHY WHEN I RUN THIS VBA, IT SAYS RUN-TIME ERROR '450': wRONG NUMBER OF
ARGUMENTS OR INVALID PROPERTY ASSIGNMENT.

WHAT CAN I DO?


Bob Phillips Wrote:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
With Worksheets("Sheet1")
.Unprotect
.UsedRange.Value = .UsedRange.Value
.Protect
End With
End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor"
wrote
in message
...

because the workbook is protected, so the code doesnt run properly,

what
can i do?
thanx
Bob Phillips Wrote:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel

As
Boolean)
With Worksheets("Sheet1")
.UsedRange.Value = .UsedRange.Value
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the

worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor"


wrote in
message

...

what can i do if someone save or save as the workbook, the saved
file
only got numbers instead fomula, what i mean is when you save

the
file,
you can see all the numbers and you cant put in new data.

thanx


--
jinvictor


------------------------------------------------------------------------
jinvictor's Profile:
http://www.excelforum.com/member.php...o&userid=34099
View this thread:
http://www.excelforum.com/showthread...hreadid=553118



--
jinvictor

------------------------------------------------------------------------
jinvictor's Profile:

http://www.excelforum.com/member.php...o&userid=34099
View this thread:

http://www.excelforum.com/showthread...hreadid=553118



--
jinvictor
------------------------------------------------------------------------
jinvictor's Profile: http://www.excelforum.com/member.php...o&userid=34099
View this thread: http://www.excelforum.com/showthread...hreadid=553118



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default about save or save as

wrap-around

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As
Boolean)
With Worksheets("Sheet1")
.Unprotect
.UsedRange.Value = .UsedRange.Value
.Protect
End With
End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor" wrote
in message ...

WHY WHEN I RUN THIS VBA, IT SAYS RUN-TIME ERROR '450': wRONG NUMBER OF
ARGUMENTS OR INVALID PROPERTY ASSIGNMENT.

WHAT CAN I DO?


Bob Phillips Wrote:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
With Worksheets("Sheet1")
.Unprotect
.UsedRange.Value = .UsedRange.Value
.Protect
End With
End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor"
wrote
in message
...

because the workbook is protected, so the code doesnt run properly,

what
can i do?
thanx
Bob Phillips Wrote:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel

As
Boolean)
With Worksheets("Sheet1")
.UsedRange.Value = .UsedRange.Value
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the

worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jinvictor"


wrote in
message

...

what can i do if someone save or save as the workbook, the saved
file
only got numbers instead fomula, what i mean is when you save

the
file,
you can see all the numbers and you cant put in new data.

thanx


--
jinvictor


------------------------------------------------------------------------
jinvictor's Profile:
http://www.excelforum.com/member.php...o&userid=34099
View this thread:
http://www.excelforum.com/showthread...hreadid=553118



--
jinvictor

------------------------------------------------------------------------
jinvictor's Profile:

http://www.excelforum.com/member.php...o&userid=34099
View this thread:

http://www.excelforum.com/showthread...hreadid=553118



--
jinvictor
------------------------------------------------------------------------
jinvictor's Profile:

http://www.excelforum.com/member.php...o&userid=34099
View this thread: http://www.excelforum.com/showthread...hreadid=553118



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
How to diasble save and save as menu but allow a save button hon123456 Excel Programming 1 June 12th 06 09:50 AM
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: harpscardiff[_10_] Excel Programming 8 November 10th 05 12:24 PM
when i save xls file, debug script is running and canno't save fil Imtiaz Excel Discussion (Misc queries) 1 July 16th 05 03:47 PM
Why system asks me to save change even after I call save method(VB.NET) steellock Excel Programming 2 April 27th 04 04:14 AM


All times are GMT +1. The time now is 06:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"