Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2012, 03:36 PM
JBeaucaire JBeaucaire is offline Is it correct (PasteSpecial function) Windows XP Is it correct (PasteSpecial function) Office 2003
Advanced Beginner
 
Join Date: Dec 2011
Posts: 51
JBeaucaire is on a distinguished road
Default

A FUNCTION() is by definition a formula. If it is used in a cell, that is.



However a macro can be invoked to run on the activecell. This macro will convert the current selected cells into flat values:

Code:
Sub RemoveFormulas()
    Selection.Value = Selection.Value
End Sub
Reply With Quote
  #2  
Old 01-08-2012, 09:08 PM
gsrikanth gsrikanth is offline Is it correct (PasteSpecial function) Windows XP Is it correct (PasteSpecial function) Office XP
Competent Performer
Is it correct (PasteSpecial function)
 
Join Date: Dec 2011
Posts: 133
gsrikanth is on a distinguished road
Default

Quote:
Originally Posted by JBeaucaire View Post
A FUNCTION() is by definition a formula. If it is used in a cell, that is.

However a macro can be invoked to run on the activecell. This macro will convert the current selected cells into flat values:

Code:
Sub RemoveFormulas()
    Selection.Value = Selection.Value
End Sub
in below function by giving =sss(a1) in formula bar it well get font size of user

Public Function sss(strCell) As String
sss=strCell.Font.Size
End Function

like that only i need, if i give =sss(a1) remove formula and give flat value
Reply With Quote
  #3  
Old 01-09-2012, 01:12 AM
JBeaucaire JBeaucaire is offline Is it correct (PasteSpecial function) Windows XP Is it correct (PasteSpecial function) Office 2003
Advanced Beginner
 
Join Date: Dec 2011
Posts: 51
JBeaucaire is on a distinguished road
Default

The normal formula =A1 will give you the "value" from cell A1.

There is not formula (or even User Defined Function) that causes another cell to lose it's formula. Only a regular macro can do that, not a function.
Reply With Quote
  #4  
Old 01-09-2012, 01:27 AM
gsrikanth gsrikanth is offline Is it correct (PasteSpecial function) Windows XP Is it correct (PasteSpecial function) Office XP
Competent Performer
Is it correct (PasteSpecial function)
 
Join Date: Dec 2011
Posts: 133
gsrikanth is on a distinguished road
Default

Quote:
Originally Posted by JBeaucaire View Post
The normal formula =A1 will give you the "value" from cell A1.

There is not formula (or even User Defined Function) that causes another cell to lose it's formula. Only a regular macro can do that, not a function.
we can make macro to function now?
i need that function
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup PST with correct folders dmarques Outlook 2 06-04-2011 09:59 AM
Is it correct (PasteSpecial function) No scroll bar even though settings are correct Lorretta Word 2 05-06-2011 07:31 AM
Is it correct (PasteSpecial function) Correct Format needed TonyB Mail Merge 3 05-03-2011 01:10 AM
So what is the correct value of PONT_STRING anyway? DrDOS Outlook 0 11-21-2010 04:30 AM
Is it correct (PasteSpecial function) Auto Correct to Stay On sanzlink Word 1 01-16-2009 06:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft