Hi,
I think you better post the example to be clear enough.
Gollem
Hi,
I think you better post the example to be clear enough.
Gollem
Hi,
welcome to ozgrid.
if I understand correctly you want to fill in a cell for example "A1", press a button and go to a worksheet in the same workbook linked to that data?
Or do you mean open another workbook? Be more specific.
I'm not sure this is what you want:
Select Case ActiveSheet.Range("A1").Value
Case 32
'select sheet1
Sheets("sheet1").Select
'If you want to open a workbook
'workbooks.open "c:\test.xls"
Case 64
'select sheet2
Sheets("sheet2").Select
End Select
Gollem
Hi,
it depends on the data and the things you wanna do.
For example you have on sheet1 some data and you want them in another layout on another sheet, you can do this with formules.
But I think an example is needed to have a good solution. Perhaps you can make a small example. Some data and the result...
I need more info to know what you want to do.
Gollem
Hi,
to select a heet in that workbook:
to retreive data from a cell:
You can always check code by using the macro recorder, it's a good way to learn some simple commands.
If you want more detailed information, you should post a workbook and explain which data should be transferred.
Gollem
If this doesn't work you can upload your excel and I will take a look at it.
Gollem
Hi,
I've done a little check and it seems that the Val function you use only gives rounded figure. You should try cdbl.
First test this, if this not work try:
I don't know if decimals you become use . or ,. In the example I replace the . by ,. It could be that you have to switch the two.
Gollem
I agree with WillR. I do most of the time Vba but in this case you better use the solution of WillR.
If you can do it with a simple formula => do it
Nice solution, I like it.
Gollem
Hi,
could you post the file, it would help.
Gollem
Hi,
the first thing that I notice:
txtbEffdate = CDate(txtbEffdate) is not necessary
If you use Cdate() it has to be added:
You can also try to add this code:
rngdefswap.Cells(iRow, 4).NumberFormat = "mm-dd-\y\y\y\y"
rngdefswap.Cells(iRow, 4).Value = Cdate(frmNewswap.txtbEffdate.Value )
Perhaps the other guys have some other solutions.
Gollem
Hi,
I don't know if you 've got a lot of programming experience but here's an idea:
You should be some code when workbook opens:
This code checks automatically every line of your sheet. You should built a loop to do this. The program should check the backcolor of the cell(if ... send mail, else do nothing) You also have to check if there is already an email send(see below). You don't want the program send an email every time you open your excel.
You should pay attention that when you send a mail you put an extra field to your column with for example "SEND".
This is just a basic thought.
Gollem