Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Registrations and numbers Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 27 Oct 2008 at 3:31am
Hi Gary
 
This is what you need to do
 
1. Format the cell RegistrationNumber  in the spreadsheet that contains mixed data as Text. You should do this from the Format menu in Microsoft Excel. 
2. Create a macro in Microsoft Excel that contains the following
 
Sub Addspace()
   Dim cell As Object
   For Each cell In Selection
      cell.Value = " " & cell.Value
      cell.Value = Right(cell.Value, Len(cell.Value) - 1)
   Next
  
End Sub
     
 
4. Highlight the cell Registration Number in the spreadsheet that contain the mixed data. 
5. Run the macro, and then save the spreadsheet. 
7. Connect the spreadsheet that you created in Excel to Crystal Report.
 
Refresh the report
 
Cheers
Rahul
IP IP Logged
Taz66
Newbie
Newbie
Avatar

Joined: 17 Oct 2008
Location: United Kingdom
Online Status: Offline
Posts: 11
Quote Taz66 Replybullet Posted: 27 Oct 2008 at 4:55am
have done and all worked thank you very much
Taz
IP IP Logged
<< Prev  Page  of 2
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum