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: 11,272
Default using a macro to move a function into excel cell

Deb,

Try this

Worksheets("Reformatted Data").Range("D1").Formula = _
"=INDEX(INDIRECT(""'Downloaded Data'!$A$1:$H$&'Start
Here'!$E$11"")," _
"MATCH(I3,INDIRECT(""'Downloaded Data'!$I$1:$I$&'Start
Here'!$E$11"),0),4)"


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Deb" wrote in message
...
The function works in Excel. But, when VB encounters the first quote, it

thinks the rest is a comment. I renamed the spreadsheets to have a
one-level name so that I could remove the single quotes, but it still didn't
work. Help!!

Worksheets("Reformatted Data").Range("D1").Formula =

"=INDEX(INDIRECT("'Downloaded Data'!$A$1:$H$"&'Start
Here'!$E$11),MATCH(I3,INDIRECT("'Downloaded Data'!$I$1:$I$"&'Start
Here'!$E$11),0),4)"


 
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
macro to move to another cell Frappier New Users to Excel 8 November 11th 08 02:06 PM
Macro to move one cell down tjb Excel Worksheet Functions 13 April 22nd 08 09:52 PM
How to write macro to move object via if function Ged Excel Discussion (Misc queries) 4 February 20th 06 12:34 AM
using a macro to move a function into excel cell Harald Staff Excel Programming 2 May 27th 04 06:37 PM
Macro to move to next cell Neil[_12_] Excel Programming 2 August 2nd 03 09:45 PM


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