Jump to content

Ler célula data


Elisa Maio

Recommended Posts

Bom dia,

Estou com uma dúvida, se alguém me conseguir ajudar, agradeço!

É o seguinte, peço ao utilizador para inserir uma data inicial (defino como sendo a) e uma data final (defino como sendo b).

Depois quero comparar as datas que tenho numa coluna com as datas dadas pelo utilizador, algo deste genero:

If cells(i,5)>=a and cells(i,5)<=b then

Contudo, a macro não lê o valor da célula(i,5) !

Alguma ajuda?

Obrigada!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.