Jump to content
Macro Express Forums

If Clipboard help


phenomenix

Recommended Posts

Thank you for the suggestions.

 

The first one will work. I had never thought of doing it with a variable, since the thing I'm putting on the clipboard is an entire Web page, but I tried it and it works. Who'd-a-thunk of naming an entire Web page with a variable?

 

The second suggestion, with the else statement is a little trickier, since I can't predict what the web page will contain. In other words I have no "Special Stuff" to search on. If I did I would have just used the 'If Clipboard Contains" function to start with. I only wanted to know if it does NOT contain a specific string.

 

But I have a solution. Thanks.

 

I hope someday they will add an "If Not Clipboard Contains" statement to save the extra steps. It seems silly that it isn't there.

Link to comment
Share on other sites

The second suggestion, with the else statement is a little trickier, since I can't predict what the web page will contain. In other words I have no "Special Stuff" to search on. If I did I would have just used the 'If Clipboard Contains" function to start with. I only wanted to know if it does NOT contain a specific string.
The second example is exactly what you need. Because of the Else command the section "DO YOUR STUFF HERE" will only execute if the clipboard does not contain a specific string. Just replace 'Special Stuff' with the string you do not want it to contain.

 

I'm glad you have a method that works.

Link to comment
Share on other sites

Yeah, what Kevin said. His way is better. For some reason I forgot that there was a If Clipboard Contains. IMHO it's better because it saves the use of a variable. But if the var will be used for something else then it might have merit.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...