Copy & Paste specific cell in VBA if cell contains any number will not copy and paste if blank.

wolverine21

New Member
Joined
Jul 18, 2019
Messages
2
ValueCopy and paste cellsnotes
15
Since this has a number it will copy and paste[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF($H7<J$5,$I7,0) example of formula I'm copying and pasting[/FONT]
Cell is blanksince this is blank it will do nothing
210
Since this has a number it will copy and paste
<strike></strike>
I have approx. 200 rows in the spreadsheet. [HR][/HR]

<tbody>
</tbody>

I'm trying to attach a copy of the file and or picture but I don't have a URL.
Any help would be really appreciated. I could send an example file if that would help.
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

wolverine21

New Member
Joined
Jul 18, 2019
Messages
2
The formula didn't copy over in the notes column.

=IF($H7< j$5,$i7,0)
 
Last edited by a moderator:

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,159
Office Version
2007
Platform
Windows
If we use the < o > signs, you must put a space before and after each sign, otherwise the forum editor considers it a code and then deletes the row.

You could upload a copy of your file to a free site such www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.

​To give examples, check the following:
https://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html
 

Watch MrExcel Video

Forum statistics

Threads
1,102,285
Messages
5,485,846
Members
407,521
Latest member
marita

This Week's Hot Topics

Top