LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default Alphanumeric formula

Hi

I'm trying to enter a formula via VBA to produce an alphanumeric result of:
€œYou have ## addresses to remove from etc. etc.€€, where ## is value in
Cell G1.

Im having trouble joining the 3 parts of formula together i.e. Text, Value
from G1, Text.
So my work around code so far is;

Cells(Rows.Count, "A").End(xlUp).Select
With Selection
.Offset(3, 0).Formula = "=""NOTE!! You have ""&G1"
.Offset(3, 1).Formula = "="" addresse/s to remove etc. etc."""
.Offset(4, 0).Range("A1").FormulaR1C1 = "=CONCATENATE(R[-1]C,R[-1]C[1])"
.Offset(4, 0).Range("A1").Copy
.Offset(4, 0).PasteSpecial Paste:=xlPasteValues, Operation:=€¦€¦€¦
End With
ActiveCell.Offset(-1, 0).Range("A1:B1").ClearContents

The formula cell changes each time code is run; so using FormulaR1C1
Relative Reference is not an option.

Can the Text, Value, Text be achieved with the one formula in this situation?

TIA.

--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro
 
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
If Then formula w/ alphanumeric listbox David C Excel Worksheet Functions 1 January 18th 10 10:57 PM
How to set up a formula for an Alphanumeric numbering system RitaK Excel Discussion (Misc queries) 2 August 19th 09 02:03 PM
Alphanumeric hardeep via OfficeKB.com Excel Worksheet Functions 21 July 29th 08 06:12 PM
ALPHANUMERIC shashidhar Excel Worksheet Functions 5 January 28th 08 02:09 AM
Sort alphanumeric Arran Excel Discussion (Misc queries) 15 November 26th 06 09:41 PM


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