LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Joining cells together

One way:

Public Sub JoinNegs()
Dim rCell As Range
For Each rCell In Range("A1:A" & _
Range("A" & Rows.Count).End(xlUp).Row)
With rCell
If .Offset(0, 1).Text = "-" Then _
.Value = -.Value
End With
Next rCell
End Sub

In article <5b153e053bbd9@uwe,
"Danny Boy via OfficeKB.com" <u15117@uwe wrote:

Thanks for your responses

I don't have the option to use any of those methods,

I have cell A1 = 10 and B1 = -

This must change A1 to -10

I have no other option, I cannot use any other cells for joining,

Any others Ideas?



 
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
Joining the contents of several cells into a single one Jorge E. Jaramillo Excel Discussion (Misc queries) 7 November 3rd 08 11:29 PM
Joining numbered cells prefixed with zero Petee Excel Worksheet Functions 1 April 10th 08 04:52 PM
Joining letters from different cells Lance Excel Worksheet Functions 3 October 9th 05 06:05 PM
Joining text sungen99[_19_] Excel Programming 2 October 29th 04 08:01 PM
Joining text in multiple cells John Wilson Excel Programming 0 July 16th 03 07:45 PM


All times are GMT +1. The time now is 12:06 AM.

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"