Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 202
Default Format Returned Values in VBA Q

The code below returns for me the values in Cells E6 & B62, but the
value in B62 is 18.87% but what is returned for me on my code is
0.1847547857. How can I format what is returned as **.**%?


ThisWorkbook.Sheets("Master").Range("E6") & " " & ThisWorkbook.Sheets
("Report").Range("B62") & vbNewLine & _

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Format Returned Values in VBA Q

When you use Range(xx) without specifying a property, the Value property is
assumed. Try using the Text property instead...

ThisWorkbook.Sheets("Master").Range("E6").Text & " " & ThisWorkbook.Sheets
("Report").Range("B62") & vbNewLine & _


--
Rick (MVP - Excel)


"Seanie" wrote in message
...
The code below returns for me the values in Cells E6 & B62, but the
value in B62 is 18.87% but what is returned for me on my code is
0.1847547857. How can I format what is returned as **.**%?


ThisWorkbook.Sheets("Master").Range("E6") & " " & ThisWorkbook.Sheets
("Report").Range("B62") & vbNewLine & _


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 202
Default Format Returned Values in VBA Q

Thanks, that simple..

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
VLookup multiple values - sum returned values into single cell se7098 Excel Worksheet Functions 12 April 2nd 23 07:32 PM
Getting a list of returned values from an array ProfMarks Excel Worksheet Functions 1 January 23rd 08 04:17 AM
How do I sum values returned from functions? Duff Divot Excel Worksheet Functions 4 March 31st 06 07:29 PM
Conditional Format on returned value Patrick Simonds Excel Programming 1 October 1st 05 04:38 AM
How do I set up a conditional format using the value returned by . RGDeb Excel Discussion (Misc queries) 2 April 26th 05 12:59 PM


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