inputbox not showing value of cel to adjust and does show when in next cel and going back

littlepete

Well-known Member
Joined
Mar 26, 2015
Messages
507
Office Version
  1. 365
Platform
  1. Windows
hello :)

i am currently working on an inputbox to fill in new data in a new last row, and that's working perfectly !

now i'm trying to adjust the macro to go through all data of an existing row.
when going from K to Z it does not show the data of the column in the active row.
but when i type 99 (case go back to column -1) it does show the data ...

what do i need to adjust ?

VBA Code:
keuze = InputBox(Chr(10) & _ 
    "Deze lijst bevat " & aantalcontacten & " contacten." & Chr(10) & Chr(10) & _ // [I]list containing x contacts[/I]
    "tik 0 om dit scherm te verlaten." & Chr(10) & _
    "druk 99 om naar het vorige gegeven terug te gaan." & Chr(10) & _ // [I]type 99 to select column -2 from D to C (for.ex.)[/I]
    " druk 55 om bestaande gegevens te wijzigen." & Chr(10) & _
    "druk ENTER voor volgende gegeven." & Chr(10) & _ // [I]press enter to continue without changes[/I]
    "______________________________________________________" & Chr(10) & Chr(10) & _
    Cells(titelrij, dezekolom).Value & " invullen: ..." & Chr(10) & _
    "nu: [ " & Cells(nieuwerij, dezekolom).Value & " ]" & Chr(10), _
    UCase(Cells(nieuwerij, dezekolom).Value & " INVULLEN [ " & dezekolom & " van 96 ]"), antwoord, 11000, 10000)

thank you for your point of view !!!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Glad to hear you got the solution.

If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,182
Members
452,615
Latest member
bogeys2birdies

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