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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,224,815
Messages
6,181,136
Members
453,021
Latest member
Justyna P

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