#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Convert to Values

I have a workbook that has 40 tabs. In each of the tabs there are formulas
referenced to a tab named DBASE , which is one among the 40 tabs.

Is it possible to convert only those DBASE reference formulas wherever
referenced in all the 39 tabs into values by a single action using a macro.
All the tabs have data from Range A2 to AG4000
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jbm Jbm is offline
external usenet poster
 
Posts: 28
Default Convert to Values

Ananth,
You should probably save first, but try this:

Sub Tester()
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Sheets
With sht.Range("A2:AG4000")
..Copy
..PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
Application.ScreenUpdating = True
End With
Next sht
End Sub


"Ananth" wrote:

I have a workbook that has 40 tabs. In each of the tabs there are formulas
referenced to a tab named DBASE , which is one among the 40 tabs.

Is it possible to convert only those DBASE reference formulas wherever
referenced in all the 39 tabs into values by a single action using a macro.
All the tabs have data from Range A2 to AG4000

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Convert to Values

Try:

Sub noDBASE()
Dim w As Worksheet, r As Range, s As String
For Each w In Worksheets
If w.Name < "DBASE" Then
w.Activate
For Each r In ActiveSheet.UsedRange
s = r.Formula
If InStr(s, "DBASE") < 0 Then
r.Copy
r.PasteSpecial Paste:=xlPasteValues
End If
Next
End If
Next
End Sub
--
Gary''s Student - gsnu200860


"Ananth" wrote:

I have a workbook that has 40 tabs. In each of the tabs there are formulas
referenced to a tab named DBASE , which is one among the 40 tabs.

Is it possible to convert only those DBASE reference formulas wherever
referenced in all the 39 tabs into values by a single action using a macro.
All the tabs have data from Range A2 to AG4000

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
Convert to Values Thomas M. Excel Discussion (Misc queries) 4 July 3rd 09 04:18 PM
How to convert the values into 3 digits? Eric Excel Discussion (Misc queries) 5 February 2nd 08 10:23 PM
convert formulas to values MatthewFlinchem Excel Worksheet Functions 3 May 17th 06 04:39 PM
Convert Values to formulas TSter Excel Worksheet Functions 4 January 15th 06 09:26 PM
convert $ value to day values bo Excel Worksheet Functions 2 May 15th 05 05:37 PM


All times are GMT +1. The time now is 05:29 PM.

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

About Us

"It's about Microsoft Excel"