Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Viewing only the #’s


Sheet1 has all sorts of look up tables and formulas. I want to make
macro that will make Sheet2 only have the numbers resulting form th
stuff on Sheet1. Make sense?

Thanks very much for the help,
Ke

--
sungen9
-----------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...nfo&userid=914
View this thread: http://www.excelforum.com/showthread.php?threadid=40046

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default Viewing only the #s

Ken,
Is this what you wanted?

Option Explicit
Sub PasteSpecial()
Sheets(1).Activate
Cells.Select
Selection.Copy
Sheets("Sheet2").Select
Cells.Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
End Sub

--
Ken Hudson


"sungen99" wrote:


Sheet1 has all sorts of look up tables and formulas. I want to make a
macro that will make Sheet2 only have the numbers resulting form the
stuff on Sheet1. Make sense?

Thanks very much for the help,
Ken


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=400465


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Viewing only the #’s


This is my code. It is saving the data correctly but its saving the
formulas and all i want is the "value". How would I change this to
only place the values?

thank you!
Ken




Application.DisplayAlerts = False

Dim wb As Workbook
Sheets(Array("Recap")).Copy
Set wb = ActiveWorkbook
wb.SaveAs Filename:="C:\Recap-Ver1.1.xls"
wb.Close False

Application.DisplayAlerts = True


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=400465

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Viewing only the #'s

Application.DisplayAlerts = False

Dim wb As Workbook
Sheets(Array("Recap")).Copy
Activesheet.UsedRange.Formula = ActiveSheet.Usedrange.Values
Set wb = ActiveWorkbook
wb.SaveAs Filename:="C:\Recap-Ver1.1.xls"
wb.Close False

Application.DisplayAlerts = True


--
Regards,
Tom Ogilvy

"sungen99" wrote in
message ...

This is my code. It is saving the data correctly but its saving the
formulas and all i want is the "value". How would I change this to
only place the values?

thank you!
Ken




Application.DisplayAlerts = False

Dim wb As Workbook
Sheets(Array("Recap")).Copy
Set wb = ActiveWorkbook
wb.SaveAs Filename:="C:\Recap-Ver1.1.xls"
wb.Close False

Application.DisplayAlerts = True


--
sungen99
------------------------------------------------------------------------
sungen99's Profile:

http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=400465



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Viewing only the #’s


Thank you Tom!


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=400465



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Viewing only the #'s

Substitute value for values:
Activesheet.UsedRange.Formula = ActiveSheet.Usedrange.Value

Verses:
Activesheet.UsedRange.Formula = ActiveSheet.Usedrange.Values

Regards--Lonnie M.

Tom Ogilvy wrote:
Application.DisplayAlerts = False

Dim wb As Workbook
Sheets(Array("Recap")).Copy
Activesheet.UsedRange.Formula = ActiveSheet.Usedrange.Values
Set wb = ActiveWorkbook
wb.SaveAs Filename:="C:\Recap-Ver1.1.xls"
wb.Close False

Application.DisplayAlerts = True


--
Regards,
Tom Ogilvy

"sungen99" wrote in
message ...

This is my code. It is saving the data correctly but its saving the
formulas and all i want is the "value". How would I change this to
only place the values?

thank you!
Ken




Application.DisplayAlerts = False

Dim wb As Workbook
Sheets(Array("Recap")).Copy
Set wb = ActiveWorkbook
wb.SaveAs Filename:="C:\Recap-Ver1.1.xls"
wb.Close False

Application.DisplayAlerts = True


--
sungen99
------------------------------------------------------------------------
sungen99's Profile:

http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=400465


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Viewing only the #'s

My typo - thanks.

--
Regards,
Tom Ogilvy


"Lonnie M." wrote in message
oups.com...
Substitute value for values:
Activesheet.UsedRange.Formula = ActiveSheet.Usedrange.Value

Verses:
Activesheet.UsedRange.Formula = ActiveSheet.Usedrange.Values

Regards--Lonnie M.

Tom Ogilvy wrote:
Application.DisplayAlerts = False

Dim wb As Workbook
Sheets(Array("Recap")).Copy
Activesheet.UsedRange.Formula = ActiveSheet.Usedrange.Values
Set wb = ActiveWorkbook
wb.SaveAs Filename:="C:\Recap-Ver1.1.xls"
wb.Close False

Application.DisplayAlerts = True


--
Regards,
Tom Ogilvy

"sungen99" wrote

in
message ...

This is my code. It is saving the data correctly but its saving the
formulas and all i want is the "value". How would I change this to
only place the values?

thank you!
Ken




Application.DisplayAlerts = False

Dim wb As Workbook
Sheets(Array("Recap")).Copy
Set wb = ActiveWorkbook
wb.SaveAs Filename:="C:\Recap-Ver1.1.xls"
wb.Close False

Application.DisplayAlerts = True


--
sungen99


------------------------------------------------------------------------
sungen99's Profile:

http://www.excelforum.com/member.php...fo&userid=9144
View this thread:

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




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
help with viewing rows iris Excel Discussion (Misc queries) 0 November 24th 09 07:20 PM
Viewing Tabs karen New Users to Excel 1 June 3rd 08 06:46 PM
Viewing in web Corrine Charts and Charting in Excel 0 January 26th 06 06:30 PM
viewing formulas Tom Andrew Excel Discussion (Misc queries) 1 May 26th 05 06:40 PM
Viewing PCX Files Dana[_2_] Excel Programming 4 May 10th 04 11:31 AM


All times are GMT +1. The time now is 10:21 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"