problem with function call

dwarek

Board Regular
Joined
Jul 15, 2016
Messages
79
hello i have created a userform , the function of the userform is like first when i enter the value it will be entered into the sheet with specified rows then next if enter just few fields it will copy the value of cell above and paste on the current cell.When i run the program it works perfectly, but when i assigned a rounded rectangle button on sheet two for example like start button and when i press it the userform appears and here the values which i enter in the field alone is printed into the sheet and copy function doesn't work here. TO BE SHORT THE USERFORM IS WORKING FINE WHEN RUN PROGRAM VBA SCREEN BUT WHEN ASSIGNED MACRO BUTTON THE USERFORM APPEARS BUT COPY FUNCTION IS NOT WORKING. What could be the problem
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You would have to post some code. Is the code trying to paste to the "Activecell"? If you click a button that takes the focus away from the cell you are trying to paste the result, you may get that error.

Jeff
 
Upvote 0

Forum statistics

Threads
1,216,129
Messages
6,129,047
Members
449,482
Latest member
al mugheen

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