Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using formula problem

I am trying to use the following in Excel VBA;
xlApp.Selection.Range("A4", code).Formula =
"=LOOKUP(REPT("Z",255),B4:I4)"

If I leave off the formula portion the .formula expression is fine.
The problem I'm having is that I keep getting "Compile Error
Expected:)" But I have all of my brackets balanced.

Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Using formula problem

xlApp.Range("A4").Formula =
"=LOOKUP(REPT("Z",255),B4:I4)"

??

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jeff" wrote in message
m...
I am trying to use the following in Excel VBA;
xlApp.Selection.Range("A4", code).Formula =
"=LOOKUP(REPT("Z",255),B4:I4)"

If I leave off the formula portion the .formula expression is fine.
The problem I'm having is that I keep getting "Compile Error
Expected:)" But I have all of my brackets balanced.

Jeff



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Using formula problem

I'm trying to copy text from the columns to the right of the cell for the
range B4:I4, using the repeat function inside of the lookup function such
that text in the character range from the letter Z to asci code 255.

When I type this out, the letter Z causes no problems if not enclosed by
quotation marks. However in order to function the Z must be enclosed in
qutation marks.

Jeff
"Bob Phillips" wrote in message
...
xlApp.Range("A4").Formula =
"=LOOKUP(REPT("Z",255),B4:I4)"

??

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jeff" wrote in message
m...
I am trying to use the following in Excel VBA;
xlApp.Selection.Range("A4", code).Formula =
"=LOOKUP(REPT("Z",255),B4:I4)"

If I leave off the formula portion the .formula expression is fine.
The problem I'm having is that I keep getting "Compile Error
Expected:)" But I have all of my brackets balanced.

Jeff





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Using formula problem

xlApp.Range("A4").Formula = "=LOOKUP(REPT(""Z"",255),B4:I4)"


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Buster" wrote in message
...
I'm trying to copy text from the columns to the right of the cell for the
range B4:I4, using the repeat function inside of the lookup function such
that text in the character range from the letter Z to asci code 255.

When I type this out, the letter Z causes no problems if not enclosed by
quotation marks. However in order to function the Z must be enclosed in
qutation marks.

Jeff
"Bob Phillips" wrote in message
...
xlApp.Range("A4").Formula =
"=LOOKUP(REPT("Z",255),B4:I4)"

??

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jeff" wrote in message
m...
I am trying to use the following in Excel VBA;
xlApp.Selection.Range("A4", code).Formula =
"=LOOKUP(REPT("Z",255),B4:I4)"

If I leave off the formula portion the .formula expression is fine.
The problem I'm having is that I keep getting "Compile Error
Expected:)" But I have all of my brackets balanced.

Jeff







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
Formula Problem Lise Excel Discussion (Misc queries) 3 July 21st 09 04:05 AM
If formula problem mrsmmm1000 Excel Worksheet Functions 8 July 6th 08 08:52 PM
Formula Problem JoeH New Users to Excel 3 July 4th 07 08:07 PM
Formula problem Computer geek Excel Worksheet Functions 4 June 8th 07 08:01 PM
problem with formula jpoltor Excel Discussion (Misc queries) 2 March 19th 06 12:19 AM


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