Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel/macro Formula Problem!

Post the code that you are using. Code like the following should
work:

If Range("A1").Value < "" Then
' A1 has something in it
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"nic17 " wrote in message
...
Thanks for your help,

I have tried both of these suggestions, but neither work! I've

also
tried below:

<""
<" "
< ""
< " "
!=""
!=" "

It's such a simple task, so why does this not work??


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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel/macro Formula Problem!

Below is the macro that I have set up:

Application.ScreenUpdating = False
Sheets("MTHDATA").Visible = True
Sheets("Criteria2").Visible = True
Sheets("Criteria2").Select

Range("datainput").AdvancedFilter Action:=xlFilterCopy
CriteriaRange _
:=Range("critrep1"), CopyToRange:=Range("report1")
Unique:=True

Sheets("Macro").Select
Range("C5").Select
Application.ScreenUpdating = True
End Sub

The criteria this is reading from is:

Report1 Incomp
< "0"

It should then dump this into 'report 1'.

This has worked for all the other reports

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

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
Excel-Macro Problem SR Excel Discussion (Misc queries) 8 July 20th 07 06:32 AM
Formula Problem in Macro [email protected] Excel Discussion (Misc queries) 2 April 4th 07 09:49 PM
Macro problem in Excel pd Excel Discussion (Misc queries) 2 March 14th 06 05:49 AM
problem with macro on Excel Captain Picard Excel Worksheet Functions 0 February 1st 06 09:20 PM
Excel XP macro problem Paul Reeve Excel Programming 1 November 10th 03 11:26 PM


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