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: 1
Default Using Macro & offset to put in formulas

Hello!

I am creating a 'shared' workbook that users input data into and
would like to create a macro the user can use to put a new row in an
fill it with the required formula's.

The problem I am having is that I am trying to use Offset to put th
formulas in to the various columns for the row and I am stuck on
formula.

How would I use Offset for this formula:
=IF(A96="","",AO96&" - "&VLOOKUP(AQ96&AR96,CompLookUp,2,0))

This is what I tried:
.Offset(0, 12).Formula = "=IF(A" & .Row & "="","",AO" & .Row & "&"
"&VLOOKUP(AQ" & .Row & "&AR" & .Row & ",CompLookUp,2,0))"

It isn't working...Am I trying something too complex? Is there
better way? Help!
Mik

--
Message posted from http://www.ExcelForum.com

 
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
INDEX and OFFSET Formulas Kiley Excel Discussion (Misc queries) 0 March 31st 10 04:49 PM
Can Offset() be used in Excel cell formulas when filtered (visible-only)? [email protected] Excel Discussion (Misc queries) 0 July 19th 08 04:35 PM
How do I avoid referencing hidden values in formulas like OFFSET? K Excel Worksheet Functions 2 July 14th 06 08:46 PM
Unexpected (?) behaviour of OFFSET() in array formulas vezerid Excel Discussion (Misc queries) 11 December 13th 05 08:29 PM
using offset with array formulas QuantumPion Excel Worksheet Functions 1 June 7th 05 07:54 PM


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