PLEASE HELP - Using Evaluate to determine Acitve cell location

EEEEE

New Member
Joined
Oct 23, 2015
Messages
14
Hi Guys,

I am currently making a macro for a button to log queries, I tried to use an IF statement to check if the desired cell is empty, and if not, record the comments on the next cell to the right but it doesn't work, please any help would be much appreciated. See below:

Code:
Option Explicit
Sub Comment_Click()
Dim C As Integer
C = [MATCH(Summary!$A$2&$W$6,Query_LOG!$A$1:$A$13184&Query_LOG!$C$1:$C$13184,0)]
Debug.Print C
Worksheets("Query_LOG").Select
Range("D" & C).Select
If ActiveCell = False Then
ActiveCell = [Summary!A2&" "&Summary!W6&" "&Summary!M5]
Else: ActiveCell.Offset(0, 1) = [Summary!A2&" "&Summary!W6&" "&Summary!M5]
End If
MsgBox "Query Logged!"
Worksheets("Summary").Select
End Sub

Basically a summary table pulls all data from which a user can submit comments if need be, which would be distributed in the query log.

Thanks in advance for reading this post.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top