Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Union question
I have a string similar to the following (the underscore
is a blank space): _49 x 1.5 Total 49 and 1.5 come from ranges in a worksheet I need to assign this string to a variable. I tried the following, but I can't get it to work (doesn't seem to like the blank spaces): NewBF = Union(" ", Sheets("PanelChange").Range("C1"), _ " " x ", Sheets("PanelChange").Range("D1"), " ", "Total") Any advice on this? TIA, Todd |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Union question
NewBF = " " & Sheets("PanelChange").Range("C1") & _
" x " & Sheets("PanelChange").Range("D1") & _ " " & "Total" -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "ToddG" wrote in message ... I have a string similar to the following (the underscore is a blank space): _49 x 1.5 Total 49 and 1.5 come from ranges in a worksheet I need to assign this string to a variable. I tried the following, but I can't get it to work (doesn't seem to like the blank spaces): NewBF = Union(" ", Sheets("PanelChange").Range("C1"), _ " " x ", Sheets("PanelChange").Range("D1"), " ", "Total") Any advice on this? TIA, Todd |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Union question
Thanks once again Bob. Thought i'd have to use the Union.
-----Original Message----- NewBF = " " & Sheets("PanelChange").Range("C1") & _ " x " & Sheets("PanelChange").Range("D1") & _ " " & "Total" -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "ToddG" wrote in message ... I have a string similar to the following (the underscore is a blank space): _49 x 1.5 Total 49 and 1.5 come from ranges in a worksheet I need to assign this string to a variable. I tried the following, but I can't get it to work (doesn't seem to like the blank spaces): NewBF = Union(" ", Sheets("PanelChange").Range("C1"), _ " " x ", Sheets("PanelChange").Range ("D1"), " ", "Total") Any advice on this? TIA, Todd . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Union question
No, Union joins ranges not strings
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "ToddG" wrote in message ... Thanks once again Bob. Thought i'd have to use the Union. -----Original Message----- NewBF = " " & Sheets("PanelChange").Range("C1") & _ " x " & Sheets("PanelChange").Range("D1") & _ " " & "Total" -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "ToddG" wrote in message ... I have a string similar to the following (the underscore is a blank space): _49 x 1.5 Total 49 and 1.5 come from ranges in a worksheet I need to assign this string to a variable. I tried the following, but I can't get it to work (doesn't seem to like the blank spaces): NewBF = Union(" ", Sheets("PanelChange").Range("C1"), _ " " x ", Sheets("PanelChange").Range ("D1"), " ", "Total") Any advice on this? TIA, Todd . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Quick question on naming a union of ranges | Excel Discussion (Misc queries) | |||
UNION of Arrays - is possible? | Excel Discussion (Misc queries) | |||
Help w/ Union Queries | Excel Discussion (Misc queries) | |||
Union only works for sometimes. | Excel Programming | |||
VBA union of two ranges | Excel Programming |