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: 45
Default Need help inserting formula with macro

I have a workbook with several worksheets. The "MergeList" sheet relies on
information from the "NotificationFormat" sheet. Here is the formula used in
cell A2 of "MergeList":
=IF(NotificationFormat!F2<"",NotificationFormat!F 2,""

This formula is copied and pasted to the rest of the cells in the column so
that the row number increments.

A copy of this workbook is used over and over again and somehow this formula
gets messed up or deleted completely. I would like to have a "reset" macro
that inserts this formula in cell A2 and copies and pastes it to the rest of
the cells in the column.

I can't even get the part the inserts the formula to work:
Sheets("MergeList").Select
With ActiveSheet
.Range("A2").FormulaR1C1 =
"=IF(NotificationFormat!F2<'',NotificationFormat! F2,'')"
End With

I get "Run-time error '1004': Application-defined or object-defined error"

I would appreciate any help you can give me.

Thank you,
Judy

 
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 Inserting a formula Kristi Excel Discussion (Misc queries) 0 May 13th 09 05:29 PM
a macro for inserting spreadsheet monkey Excel Programming 1 March 28th 07 07:16 PM
a macro for inserting Chris Wilkinson Excel Programming 0 March 28th 07 01:51 AM
macro for inserting a row Kazuki Excel Programming 1 August 22nd 06 06:38 AM
Inserting A Row Macro PW11111 Excel Programming 2 December 16th 04 10:27 AM


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