Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to insert formula using cell reference/text - Urgent

I have a column in my master project list, column L that holds filenames of
all the project that are being worked on. E.g Column L row 2 =
\\Housing\project1.xls

It is possible to create a macro that will use this cell and the filename to
insert a formula in Colum M row 2 to reference to a named range on the sheet?

So Cell M2 ='\\Housing\project1.xls'!Aug08 once the macro has run?

Any help on this will be greatly appreciated.

Many thanks

regards

Arran
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Macro to insert formula using cell reference/text - Urgent

You don't need a macro

="'"&L2&"'!Aug08"

--
__________________________________
HTH

Bob

"stuck4once" wrote in message
...
I have a column in my master project list, column L that holds filenames of
all the project that are being worked on. E.g Column L row 2 =
\\Housing\project1.xls

It is possible to create a macro that will use this cell and the filename
to
insert a formula in Colum M row 2 to reference to a named range on the
sheet?

So Cell M2 ='\\Housing\project1.xls'!Aug08 once the macro has run?

Any help on this will be greatly appreciated.

Many thanks

regards

Arran



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to insert formula using cell reference/text - Urgent

Hi Bob,

Thanks for your quick response.

The problem is, I need this to actually bring back the result of what is in
the named range on the other spreadsheet, where as this just shows the file
name and the range.

"Bob Phillips" wrote:

You don't need a macro

="'"&L2&"'!Aug08"

--
__________________________________
HTH

Bob

"stuck4once" wrote in message
...
I have a column in my master project list, column L that holds filenames of
all the project that are being worked on. E.g Column L row 2 =
\\Housing\project1.xls

It is possible to create a macro that will use this cell and the filename
to
insert a formula in Colum M row 2 to reference to a named range on the
sheet?

So Cell M2 ='\\Housing\project1.xls'!Aug08 once the macro has run?

Any help on this will be greatly appreciated.

Many thanks

regards

Arran




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
URGENT: Can you insert a formula into a reference ie $B4:$C(row(x HenryB Excel Worksheet Functions 1 September 17th 08 07:59 AM
Macro 2 insert formula if part of cell contains specific text Bob Phillips Excel Programming 0 June 27th 08 04:19 PM
Macro 2 insert formula if part of cell contains specific text Don Guillett Excel Programming 0 June 27th 08 01:13 PM
Can I insert a cell reference into a block of text? painterpat Excel Discussion (Misc queries) 2 June 12th 06 11:31 AM
Need macro to insert text string while inside cell (formula) BrianB Excel Discussion (Misc queries) 0 May 31st 05 03:18 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"